r356497 - Fix unused variable warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 11:39:47 PDT 2019
Author: rksimon
Date: Tue Mar 19 11:39:46 2019
New Revision: 356497
URL: http://llvm.org/viewvc/llvm-project?rev=356497&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=356497&r1=356496&r2=356497&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Tue Mar 19 11:39:46 2019
@@ -9744,7 +9744,7 @@ Address CGOpenMPRuntime::getAddressOfLoc
llvm::Value *ThreadID = getThreadID(CGF, CVD->getBeginLoc());
llvm::Value *Allocator;
if (const Expr *AllocExpr = AA->getAllocator()) {
- Allocator = CGF.EmitScalarExpr(AA->getAllocator());
+ Allocator = CGF.EmitScalarExpr(AllocExpr);
} else {
// Default allocator in libomp is nullptr.
Allocator = llvm::ConstantPointerNull::get(CGM.VoidPtrPtrTy);
More information about the cfe-commits
mailing list