From cf3f83e46b4c092b4621bc98c6fdc8edeb3e692f Mon Sep 17 00:00:00 2001 From: Samuel Antao Date: Thu, 28 Jul 2016 14:47:35 +0000 Subject: [OpenMP] Do not use default argument in lambda from mappable expressions handlers. Windows bots were complaining about that. llvm-svn: 276981 --- clang/lib/CodeGen/CGOpenMPRuntime.cpp | 11 +++++++---- 1 file 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(D->getCanonicalDecl()) : nullptr; Info[VD].push_back({L, MapType, MapModifier, ReturnDevicePointer}); @@ -5487,13 +5487,16 @@ public: for (auto *C : Directive.getClausesOfKind()) 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()) 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()) 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 -- cgit v1.2.3