From: Simon Pilgrim Date: Tue, 19 Mar 2019 18:39:46 +0000 (+0000) Subject: Fix unused variable warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=176e423c0dbaf3f7a928c5debbd76e9f3c2d35cb;p=clang Fix unused variable warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356497 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntime.cpp b/lib/CodeGen/CGOpenMPRuntime.cpp index e4d295ef0d..6dbc244bb2 100644 --- a/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/lib/CodeGen/CGOpenMPRuntime.cpp @@ -9744,7 +9744,7 @@ Address CGOpenMPRuntime::getAddressOfLocalVariable(CodeGenFunction &CGF, 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);