diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-07-28 14:47:35 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-07-28 14:47:35 +0000 |
commit | cf3f83e46b4c092b4621bc98c6fdc8edeb3e692f (patch) | |
tree | 4593cbc93f6e50df350b63ca831a278b7efd4d12 /clang/lib/CodeGen | |
parent | 19f430109903ad56a0689de25f42295e02f9543c (diff) | |
download | bcm5719-llvm-cf3f83e46b4c092b4621bc98c6fdc8edeb3e692f.tar.gz bcm5719-llvm-cf3f83e46b4c092b4621bc98c6fdc8edeb3e692f.zip |
[OpenMP] Do not use default argument in lambda from mappable expressions handlers.
Windows bots were complaining about that.
llvm-svn: 276981
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index c3927e7e8c8..5009111ec37 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -5479,7 +5479,7 @@ public: const ValueDecl *D, OMPClauseMappableExprCommon::MappableExprComponentListRef L, OpenMPMapClauseKind MapType, OpenMPMapClauseKind MapModifier, - MapInfo::ReturnPointerKind ReturnDevicePointer = MapInfo::RPK_None) { + MapInfo::ReturnPointerKind ReturnDevicePointer) { const ValueDecl *VD = D ? cast<ValueDecl>(D->getCanonicalDecl()) : nullptr; Info[VD].push_back({L, MapType, MapModifier, ReturnDevicePointer}); @@ -5487,13 +5487,16 @@ public: for (auto *C : Directive.getClausesOfKind<OMPMapClause>()) for (auto L : C->component_lists()) - InfoGen(L.first, L.second, C->getMapType(), C->getMapTypeModifier()); + InfoGen(L.first, L.second, C->getMapType(), C->getMapTypeModifier(), + MapInfo::RPK_None); for (auto *C : Directive.getClausesOfKind<OMPToClause>()) for (auto L : C->component_lists()) - InfoGen(L.first, L.second, OMPC_MAP_to, OMPC_MAP_unknown); + InfoGen(L.first, L.second, OMPC_MAP_to, OMPC_MAP_unknown, + MapInfo::RPK_None); for (auto *C : Directive.getClausesOfKind<OMPFromClause>()) for (auto L : C->component_lists()) - InfoGen(L.first, L.second, OMPC_MAP_from, OMPC_MAP_unknown); + InfoGen(L.first, L.second, OMPC_MAP_from, OMPC_MAP_unknown, + MapInfo::RPK_None); // Look at the use_device_ptr clause information and mark the existing map // entries as such. If there is no map information for an entry in the |