r373410 - Fix unused variable warning. NFCI.
Michael Liao via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 17:22:45 PDT 2019
Author: hliao
Date: Tue Oct 1 17:22:45 2019
New Revision: 373410
URL: http://llvm.org/viewvc/llvm-project?rev=373410&view=rev
Log:
Fix unused variable warning. NFCI.
Modified:
cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp
Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp?rev=373410&r1=373409&r2=373410&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Tue Oct 1 17:22:45 2019
@@ -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() &&
More information about the cfe-commits
mailing list