From 8293dfd63f4a38dbf81da882c4ec699ebb098f95 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Tue, 20 Oct 2015 01:06:17 +0000 Subject: [PATCH] [RS4GC] Minor cleanup to `normalizeForInvokeSafepoint`; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250783 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index ca92b14fd90..a82750b2374 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/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(Ret->begin())); + assert(!isa(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. -- 2.34.1