From d91c9122d3fe443ca0ad525dcb64b9affce6262f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 10 Feb 2019 02:21:29 +0000 Subject: [PATCH] [InstCombine] Fix an unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353630 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index ab7c3a5e294..56d5c899a43 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -4350,7 +4350,7 @@ bool InstCombiner::transformConstExprCastCall(CallBase &Call) { PN->getParent() == II->getUnwindDest()) return false; // FIXME: Be conservative for callbr to avoid a quadratic search. - if (CallBrInst *CBI = dyn_cast(Caller)) + if (isa(Caller)) return false; } } -- 2.40.0