R600/SI: Add SIFoldOperands pass
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
index 18d034aeaa91307d312a9e9248a33014e4a652c8..3058b1a4b9b7d7e89ba41dce4b54fd40a3e9644b 100644 (file)
@@ -1066,7 +1066,7 @@ bool MachineBasicBlock::CorrectExtraCFGEdges(MachineBasicBlock *DestA,
   MachineBasicBlock::succ_iterator SI = succ_begin();
   while (SI != succ_end()) {
     const MachineBasicBlock *MBB = *SI;
-    if (!SeenMBBs.insert(MBB) ||
+    if (!SeenMBBs.insert(MBB).second ||
         (MBB != DestA && MBB != DestB && !MBB->isLandingPad())) {
       // This is a superfluous edge, remove it.
       SI = removeSuccessor(SI);