summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-10-07 02:39:27 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-10-07 02:39:27 +0000
commit60bf3db17f4518b71143c110241b742df89035e9 (patch)
treea4a5aa75dd015651c5b76176d52c5a0bfd763a6d /llvm/lib
parentc894ed0fc75ea06f5a5e76f2cf0c3f23bbde449d (diff)
downloadbcm5719-llvm-60bf3db17f4518b71143c110241b742df89035e9.tar.gz
bcm5719-llvm-60bf3db17f4518b71143c110241b742df89035e9.zip
[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. llvm-svn: 249511
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 17d969ed02a..e107ec58c2d 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud