diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-08-17 17:00:57 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-08-17 17:00:57 +0000 |
commit | a10e89f372220a579faac02a1e4bdb0393b878a7 (patch) | |
tree | a1903ee8a0684a66404ebceb9d32a33e611581ca /lib/Transforms/Utils/SSI.cpp | |
parent | 8b818d7e98309125c6058c4ea72a7dc73b031db2 (diff) |
Don't crash on critical edge. Patch by Andre Tavares.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SSI.cpp')
-rw-r--r-- | lib/Transforms/Utils/SSI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SSI.cpp b/lib/Transforms/Utils/SSI.cpp index 7736f08768..7bb9495f3c 100644 --- a/lib/Transforms/Utils/SSI.cpp +++ b/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()); |