Skip to content

Commit

Permalink
Fix unused variable warning. NFCI.
Browse files Browse the repository at this point in the history
llvm-svn: 373410
  • Loading branch information
darkbuck committed Oct 2, 2019
1 parent e2385e0 commit d838cf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/CodeGen/CGOpenMPRuntime.cpp
Expand Up @@ -7324,10 +7324,10 @@ class MappableExprsHandler {
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() &&
Expand Down

0 comments on commit d838cf7

Please sign in to comment.