Fix unused variable warning. NFCI.

llvm-svn: 373410
This commit is contained in:
Michael Liao 2019-10-02 00:22:45 +00:00
parent e2385e089d
commit d838cf76ca
1 changed files with 4 additions and 4 deletions

View File

@ -7324,10 +7324,10 @@ private:
return ElemSize;
if (const Expr *LenExpr = OAE->getLength()) {
llvm::Value *LengthVal = CGF.EmitScalarExpr(OAE->getLength());
LengthVal = CGF.EmitScalarConversion(
LengthVal, OAE->getLength()->getType(),
CGF.getContext().getSizeType(), OAE->getLength()->getExprLoc());
llvm::Value *LengthVal = CGF.EmitScalarExpr(LenExpr);
LengthVal = CGF.EmitScalarConversion(LengthVal, LenExpr->getType(),
CGF.getContext().getSizeType(),
LenExpr->getExprLoc());
return CGF.Builder.CreateNUWMul(LengthVal, ElemSize);
}
assert(!OAE->getLength() && OAE->getColonLoc().isValid() &&