summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-03-30 18:31:07 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-03-30 18:31:07 +0000
commit37a2cfd5dd77aa4f4fb46c362babbaa764c0204d (patch)
tree6cc6183f5c887601675ef8ae4fe7bb2d1fd56a90 /lib/CodeGen/CGExpr.cpp
parent6efe17611a988cf2f4a78ab34b04f24ea7fc7dd9 (diff)
downloadclang-37a2cfd5dd77aa4f4fb46c362babbaa764c0204d.tar.gz
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 2ca3756da3..4c6f4df7ed 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/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>());
}
}