[llvm] r230168 - RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable]

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 22 01:58:13 PST 2015


Author: chapuni
Date: Sun Feb 22 03:58:13 2015
New Revision: 230168

URL: http://llvm.org/viewvc/llvm-project?rev=230168&view=rev
Log:
RewriteStatepointsForGC.cpp: Fix for -Asserts. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=230168&r1=230167&r2=230168&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Sun Feb 22 03:58:13 2015
@@ -1305,8 +1305,7 @@ makeStatepointExplicitImpl(const CallSit
     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())));
     }
   }
 





More information about the llvm-commits mailing list