summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-13 23:02:19 +0000
committerChris Lattner <sabre@nondot.org>2010-12-13 23:02:19 +0000
commita6e5d5694a60fc9792f237b761594091dd838490 (patch)
tree06c61c77c367c091f2484bff4eff8fe9f8d8de9b /llvm/lib/Transforms/Utils
parent3cb55a1d236deefc91b6ef23898aaafdd9f76232 (diff)
downloadbcm5719-llvm-a6e5d5694a60fc9792f237b761594091dd838490.tar.gz
bcm5719-llvm-a6e5d5694a60fc9792f237b761594091dd838490.zip
temporarily disable part of my previous patch, which causes an iterator invalidation issue, causing a crash on some versions of perlbmk.
llvm-svn: 121728
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 12960c94645..61ddc7c0d4a 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1515,7 +1515,7 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI) {
AddPredecessorToBlock(FalseDest, PredBlock, BB);
PBI->setSuccessor(1, FalseDest);
}
- return SimplifyCFG(PBI->getParent()) | true;
+ return SimplifyCFG(BB) | true;
}
return false;
}
OpenPOWER on IntegriCloud