From: NAKAMURA Takumi Date: Sun, 22 Feb 2015 09:58:13 +0000 (+0000) Subject: RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable] X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=572d35cc19ff395496acaaedb158014b804d4442 RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230168 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 8aae0e6d729..21452d66b63 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/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(*toReplace->user_begin()); - assert(isGCResult(GCResult)); + assert(isGCResult(cast(*toReplace->user_begin()))); } }