[RS4GC] Dont' propagate call attrs related to patchable statepoints
[oota-llvm.git] / lib / Transforms / Scalar / FlattenCFGPass.cpp
index 34ac46dd8dc89970855ecdbc84f6eedaf669be02..185cdbdda37811501f5eb2e0ffaec5876a931011 100644 (file)
@@ -59,7 +59,7 @@ static bool iterativelyFlattenCFG(Function &F, AliasAnalysis *AA) {
     // Loop over all of the basic blocks and remove them if they are unneeded...
     //
     for (Function::iterator BBIt = F.begin(); BBIt != F.end();) {
-      if (FlattenCFG(BBIt++, AA)) {
+      if (FlattenCFG(&*BBIt++, AA)) {
         LocalChange = true;
       }
     }