summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-02-10 02:21:29 +0000
committerCraig Topper <craig.topper@intel.com>2019-02-10 02:21:29 +0000
commita97857b5b536179f79e9616235905cab8241eb68 (patch)
tree115f1aeb16b2e5cf5d282ef0d5e0d0cbb5094dd7 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
parent751fe286dc39227a01ecd8e6a92a4b0392fc0eb6 (diff)
downloadbcm5719-llvm-a97857b5b536179f79e9616235905cab8241eb68.tar.gz
bcm5719-llvm-a97857b5b536179f79e9616235905cab8241eb68.zip
[InstCombine] Fix an unused variable warning.
llvm-svn: 353630
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index ab7c3a5e294..56d5c899a43 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/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<CallBrInst>(Caller))
+ if (isa<CallBrInst>(Caller))
return false;
}
}
OpenPOWER on IntegriCloud