diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-20 01:06:17 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-20 01:06:17 +0000 |
commit | ff3dba736a0cb93a9c623ed2dbcf4df046fae7e2 (patch) | |
tree | e2cdf9a30f32a2bebe9dfdd4a6f9e22e9038b32f /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | |
parent | b1f4a5091212b6decf885227bfe02aa0d6149e32 (diff) | |
download | bcm5719-llvm-ff3dba736a0cb93a9c623ed2dbcf4df046fae7e2.tar.gz bcm5719-llvm-ff3dba736a0cb93a9c623ed2dbcf4df046fae7e2.zip |
[RS4GC] Minor cleanup to `normalizeForInvokeSafepoint`; NFC
llvm-svn: 250783
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index ca92b14fd90..a82750b2374 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1249,14 +1249,14 @@ static BasicBlock * normalizeForInvokeSafepoint(BasicBlock *BB, BasicBlock *InvokeParent, DominatorTree &DT) { BasicBlock *Ret = BB; - if (!BB->getUniquePredecessor()) { + if (!BB->getUniquePredecessor()) Ret = SplitBlockPredecessors(BB, InvokeParent, "", &DT); - } // Now that 'ret' has unique predecessor we can safely remove all phi nodes // from it FoldSingleEntryPHINodes(Ret); - assert(!isa<PHINode>(Ret->begin())); + assert(!isa<PHINode>(Ret->begin()) && + "All PHI nodes should have been removed!"); // At this point, we can safely insert a gc.relocate as the first instruction // in Ret if needed. |