summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-02-22 09:58:13 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-02-22 09:58:13 +0000
commit02aa295a0087b21f921a498170891f995f003a18 (patch)
tree33b05174e0e5288b7d9a17c03761afb6f01dfcce /llvm/lib/Transforms
parent6c24684c95e0601b8aa8b80ab7d93f20967728be (diff)
downloadbcm5719-llvm-02aa295a0087b21f921a498170891f995f003a18.tar.gz
bcm5719-llvm-02aa295a0087b21f921a498170891f995f003a18.zip
RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable]
llvm-svn: 230168
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 8aae0e6d729..21452d66b63 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -1305,8 +1305,7 @@ makeStatepointExplicitImpl(const CallSite &CS, /* to replace */
assert((toReplace->hasNUses(0) || toReplace->hasNUses(1)) &&
"only valid use before rewrite is gc.result");
if (toReplace->hasOneUse()) {
- Instruction *GCResult = cast<Instruction>(*toReplace->user_begin());
- assert(isGCResult(GCResult));
+ assert(isGCResult(cast<Instruction>(*toReplace->user_begin())));
}
}
OpenPOWER on IntegriCloud