[llvm] r228295 - Removing an unused variable warning I accidentally introduced with my last warning fix; NFC.

Aaron Ballman aaron at aaronballman.com
Thu Feb 5 05:52:42 PST 2015


Author: aaronballman
Date: Thu Feb  5 07:52:42 2015
New Revision: 228295

URL: http://llvm.org/viewvc/llvm-project?rev=228295&view=rev
Log:
Removing an unused variable warning I accidentally introduced with my last warning fix; NFC.

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

Modified: llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp?rev=228295&r1=228294&r2=228295&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/PlaceSafepoints.cpp Thu Feb  5 07:52:42 2015
@@ -699,7 +699,7 @@ INITIALIZE_PASS_END(PlaceSafepoints, "pl
 
 static bool isGCLeafFunction(const CallSite &CS) {
   Instruction *inst = CS.getInstruction();
-  if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(inst)) {
+  if (isa<IntrinsicInst>(inst)) {
     // Most LLVM intrinsics are things which can never take a safepoint.
     // As a result, we don't need to have the stack parsable at the
     // callsite.  This is a highly useful optimization since intrinsic





More information about the llvm-commits mailing list