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
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();