summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2016-07-28 15:31:29 +0000
committerSamuel Antao <sfantao@us.ibm.com>2016-07-28 15:31:29 +0000
commit44bcdb373111b20f5b0a292a32595b5834c80ee4 (patch)
tree87684c07647c2103ff3d5d13c2cfc8a88620be92 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parent7e27885f699c007deb2d5804e9677710b628b0c5 (diff)
downloadbcm5719-llvm-44bcdb373111b20f5b0a292a32595b5834c80ee4.tar.gz
bcm5719-llvm-44bcdb373111b20f5b0a292a32595b5834c80ee4.zip
[OpenMP] Change name of variable in mappble expression.
This attempts to fix a failure in Windows bots pottentially related with a reserved keyword. llvm-svn: 276988
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 5009111ec37..ef0d505dca3 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -5014,7 +5014,7 @@ public:
private:
/// \brief Directive from where the map clauses were extracted.
- const OMPExecutableDirective &Directive;
+ const OMPExecutableDirective &CurDir;
/// \brief Function the directive is being generated for.
CodeGenFunction &CGF;
@@ -5419,7 +5419,7 @@ private:
public:
MappableExprsHandler(const OMPExecutableDirective &Dir, CodeGenFunction &CGF)
- : Directive(Dir), CGF(CGF) {
+ : CurDir(Dir), CGF(CGF) {
// Extract firstprivate clause information.
for (const auto *C : Dir.getClausesOfKind<OMPFirstprivateClause>())
for (const auto *D : C->varlists())
@@ -5485,15 +5485,15 @@ public:
Info[VD].push_back({L, MapType, MapModifier, ReturnDevicePointer});
};
- for (auto *C : Directive.getClausesOfKind<OMPMapClause>())
+ for (auto *C : CurDir.getClausesOfKind<OMPMapClause>())
for (auto L : C->component_lists())
InfoGen(L.first, L.second, C->getMapType(), C->getMapTypeModifier(),
MapInfo::RPK_None);
- for (auto *C : Directive.getClausesOfKind<OMPToClause>())
+ for (auto *C : CurDir.getClausesOfKind<OMPToClause>())
for (auto L : C->component_lists())
InfoGen(L.first, L.second, OMPC_MAP_to, OMPC_MAP_unknown,
MapInfo::RPK_None);
- for (auto *C : Directive.getClausesOfKind<OMPFromClause>())
+ for (auto *C : CurDir.getClausesOfKind<OMPFromClause>())
for (auto L : C->component_lists())
InfoGen(L.first, L.second, OMPC_MAP_from, OMPC_MAP_unknown,
MapInfo::RPK_None);
@@ -5502,7 +5502,7 @@ public:
// entries as such. If there is no map information for an entry in the
// use_device_ptr list, we create one with map type 'alloc' and zero size
// section. It is the user fault if that was not mapped before.
- for (auto *C : Directive.getClausesOfKind<OMPUseDevicePtrClause>())
+ for (auto *C : CurDir.getClausesOfKind<OMPUseDevicePtrClause>())
for (auto L : C->component_lists()) {
assert(!L.second.empty() && "Not expecting empty list of components!");
const ValueDecl *VD = L.second.back().getAssociatedDeclaration();
@@ -5632,7 +5632,7 @@ public:
return;
}
- for (auto *C : Directive.getClausesOfKind<OMPMapClause>())
+ for (auto *C : CurDir.getClausesOfKind<OMPMapClause>())
for (auto L : C->decl_component_lists(VD)) {
assert(L.first == VD &&
"We got information for the wrong declaration??");
OpenPOWER on IntegriCloud