Fix unused variable warning.

llvm-svn: 324605
This commit is contained in:
Simon Pilgrim 2018-02-08 14:24:26 +00:00
parent 3c11ecbbab
commit 4039dbea77
1 changed files with 1 additions and 1 deletions

View File

@ -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())