summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-08 14:24:26 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-08 14:24:26 +0000
commit4039dbea77fda46c1a45b65a3e70b72e561e5752 (patch)
tree6679368dd5a67952f7616a78f772add2404990a8 /llvm/lib
parent3c11ecbbab6af2c0b04855018a3f97ccf45ca28d (diff)
downloadbcm5719-llvm-4039dbea77fda46c1a45b65a3e70b72e561e5752.tar.gz
bcm5719-llvm-4039dbea77fda46c1a45b65a3e70b72e561e5752.zip
Fix unused variable warning.
llvm-svn: 324605
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index 9fd65001d14..e751c64caae 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -138,7 +138,7 @@ static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient,
static Constant *getLogBase2(Type *Ty, Constant *C) {
const APInt *IVal;
if (const auto *CI = dyn_cast<ConstantInt>(C))
- if (match(C, m_APInt(IVal)) && IVal->isPowerOf2())
+ if (match(CI, m_APInt(IVal)) && IVal->isPowerOf2())
return ConstantInt::get(Ty, IVal->logBase2());
if (!Ty->isVectorTy())
OpenPOWER on IntegriCloud