From 10d47667c1fcf9e3c39c13ee578c1f0f167e53cb Mon Sep 17 00:00:00 2001 From: Samuel Antao Date: Thu, 28 Jul 2016 14:47:35 +0000 Subject: [PATCH] [OpenMP] Do not use default argument in lambda from mappable expressions handlers. Windows bots were complaining about that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276981 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGOpenMPRuntime.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/CGOpenMPRuntime.cpp b/lib/CodeGen/CGOpenMPRuntime.cpp index c3927e7e8c..5009111ec3 100644 --- a/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/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 -- 2.40.0