diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 3 |
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()))); } } |