summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-08-17 17:00:57 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-08-17 17:00:57 +0000
commit4c737147e1d0a8f76cbe72c64a9f31c44ce0e011 (patch)
treeb5461c025e9dbc59cf03b021307496f319f1335e /llvm/lib
parent486be66dbd42c535f20894cc4eb5bc95e60d5900 (diff)
downloadbcm5719-llvm-4c737147e1d0a8f76cbe72c64a9f31c44ce0e011.tar.gz
bcm5719-llvm-4c737147e1d0a8f76cbe72c64a9f31c44ce0e011.zip
Don't crash on critical edge. Patch by Andre Tavares.
llvm-svn: 79252
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/SSI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SSI.cpp b/llvm/lib/Transforms/Utils/SSI.cpp
index 7736f087684..7bb9495f3cf 100644
--- a/llvm/lib/Transforms/Utils/SSI.cpp
+++ b/llvm/lib/Transforms/Utils/SSI.cpp
@@ -95,7 +95,7 @@ void SSI::insertSigmaFunctions(SmallVectorImpl<Instruction *> &value) {
// Next Basic Block
BasicBlock *BB_next = TI->getSuccessor(j);
if (BB_next != BB &&
- BB_next->getUniquePredecessor() != NULL &&
+ BB_next->getSinglePredecessor() != NULL &&
dominateAny(BB_next, value[i])) {
PHINode *PN = PHINode::Create(
value[i]->getType(), SSI_SIG, BB_next->begin());
OpenPOWER on IntegriCloud