[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
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 2ca3756..4c6f4df 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2219,7 +2219,7 @@
       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>());
       }
   }