Browse Source

Remove unnecessary double-assignment triggering -Wsequence-point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303974 91177308-0d34-0410-b5e6-96231b3b80d8
Daniel Jasper 8 years ago
parent
commit
0559b4fa45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      unittests/IR/BasicBlockTest.cpp

+ 1 - 1
unittests/IR/BasicBlockTest.cpp

@@ -60,7 +60,7 @@ TEST(BasicBlockTest, PhiRange) {
   // Test that we can use const iterators and generally that the iterators
   // Test that we can use const iterators and generally that the iterators
   // behave like iterators.
   // behave like iterators.
   BasicBlock::const_phi_iterator CI;
   BasicBlock::const_phi_iterator CI;
-  CI = CI = BB->phis().begin();
+  CI = BB->phis().begin();
   EXPECT_NE(CI, BB->phis().end());
   EXPECT_NE(CI, BB->phis().end());
 
 
   // And iterate a const range.
   // And iterate a const range.