diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-03-30 18:31:07 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-03-30 18:31:07 +0000 |
commit | 03f270c900e1f8563419fdd302683a9503e98722 (patch) | |
tree | 9da96a39200b5080cc79dc9b6e0fee4d76bb4cc8 /clang/lib/CodeGen/CGExpr.cpp | |
parent | 399b46c98d638a9a6694091b2ba8c511052a3999 (diff) | |
download | bcm5719-llvm-03f270c900e1f8563419fdd302683a9503e98722.tar.gz bcm5719-llvm-03f270c900e1f8563419fdd302683a9503e98722.zip |
[OPENMP] Added emission of offloading data sections for declare target
variables.
Added emission of the offloading data sections for the variables within
declare target regions + fixes emission of the declare target variables
marked as declare target not within the declare target region.
llvm-svn: 328888
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 2ca3756da38..4c6f4df7ed6 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -2219,7 +2219,7 @@ static Address emitDeclTargetLinkVarDeclLValue(CodeGenFunction &CGF, if (Attr->getMapType() == OMPDeclareTargetDeclAttr::MT_Link) { QualType PtrTy = CGF.getContext().getPointerType(VD->getType()); Address Addr = - CGF.CGM.getOpenMPRuntime().getAddrOfDeclareTargetLink(CGF, VD); + CGF.CGM.getOpenMPRuntime().getAddrOfDeclareTargetLink(VD); return CGF.EmitLoadOfPointer(Addr, PtrTy->castAs<PointerType>()); } } |