]> granicus.if.org Git - clang/commitdiff
Fix unused variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 19 Mar 2019 18:39:46 +0000 (18:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 19 Mar 2019 18:39:46 +0000 (18:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356497 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp

index e4d295ef0d8fbc6e4dba9b541d848d31b60cec2a..6dbc244bb2913895519b53f2f3b4ba394523f7fa 100644 (file)
@@ -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);