From 04688c792c13a753c0f3403051e0937efe92ca23 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 5 Feb 2015 13:52:42 +0000 Subject: [PATCH] Removing an unused variable warning I accidentally introduced with my last warning fix; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228295 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/PlaceSafepoints.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/PlaceSafepoints.cpp b/lib/Transforms/Scalar/PlaceSafepoints.cpp index 51859ada58d..a55c1a77f9f 100644 --- a/lib/Transforms/Scalar/PlaceSafepoints.cpp +++ b/lib/Transforms/Scalar/PlaceSafepoints.cpp @@ -699,7 +699,7 @@ INITIALIZE_PASS_END(PlaceSafepoints, "place-safepoints", "Place Safepoints", static bool isGCLeafFunction(const CallSite &CS) { Instruction *inst = CS.getInstruction(); - if (IntrinsicInst *II = dyn_cast(inst)) { + if (isa(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 -- 2.34.1