From da4cec0bf114d1ebbfe878321a391cb2d5c91dab Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 7 Oct 2015 02:39:27 +0000 Subject: [PATCH] [RS4GC] Remove an unnecessary assert & related variables I don't think this assert adds much value, and removing it and related variables avoids an "unused variable" warning in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249511 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 17d969ed02a..e107ec58c2d 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1338,11 +1338,6 @@ makeStatepointExplicitImpl(const CallSite CS, /* to replace */ assert(isStatepoint(CS) && "This method expects to be rewriting a statepoint"); - BasicBlock *BB = CS.getInstruction()->getParent(); - Function *F = BB->getParent(); - Module *M = F->getParent(); - assert(M && "must be set"); - // We're not changing the function signature of the statepoint since the gc // arguments go into the var args section. Function *GCStatepointDecl = CS.getCalledFunction(); -- 2.34.1