Remove unnecessary double-assignment triggering -Wsequence-point.
authorDaniel Jasper <djasper@google.com>
Fri, 26 May 2017 12:07:12 +0000 (12:07 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 26 May 2017 12:07:12 +0000 (12:07 +0000)
llvm-svn: 303974

llvm/unittests/IR/BasicBlockTest.cpp

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