summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-05-07 10:18:46 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-05-07 10:18:46 +0000
commit2a5bd54f4e389195eee9e2561d9d64f09e53f96b (patch)
tree84077511665bf7aeee785d60901e0dafb06458a2
parent386c22c0ffe9611893851f9230dc9b64715cfa9e (diff)
downloadbcm5719-llvm-2a5bd54f4e389195eee9e2561d9d64f09e53f96b.tar.gz
bcm5719-llvm-2a5bd54f4e389195eee9e2561d9d64f09e53f96b.zip
Scalar/PlaceSafepoints.cpp: Fix a warning introduced in r228090. [-Wunused-variable]
llvm-svn: 236711
-rw-r--r--llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
index 016591d85c2..59cc865dbb0 100644
--- a/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
+++ b/llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
@@ -868,10 +868,8 @@ static BasicBlock *normalizeBBForInvokeSafepoint(BasicBlock *BB,
/// NOT do explicit relocation for GC support.
static Value *ReplaceWithStatepoint(const CallSite &CS, /* to replace */
Pass *P) {
- BasicBlock *BB = CS.getInstruction()->getParent();
- Function *F = BB->getParent();
- Module *M = F->getParent();
- assert(M && "must be set");
+ assert(CS.getInstruction()->getParent()->getParent()->getParent() &&
+ "must be set");
// TODO: technically, a pass is not allowed to get functions from within a
// function pass since it might trigger a new function addition. Refactor
OpenPOWER on IntegriCloud