summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index e4d295ef0d8..6dbc244bb29 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud