diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 25f474ca44773d..a0e85c82868fb5 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -2347,7 +2347,7 @@ std::tuple, bool> InstrRefBasedLDV::pickVPHILoc( // If there were no locations at all, return an empty result. if (Locs.empty()) - return {None, false}; + return std::tuple, bool>(None, false); // Lambda for seeking a common location within a range of location-sets. typedef SmallVector, 8>::iterator LocsIt; @@ -2382,12 +2382,12 @@ std::tuple, bool> InstrRefBasedLDV::pickVPHILoc( } if (!TheLoc) - return {None, false}; + return std::tuple, bool>(None, false); // Return a PHI-value-number for the found location. LocIdx L = *TheLoc; ValueIDNum PHIVal = {(unsigned)MBB.getNumber(), 0, L}; - return {PHIVal, ValidForAllLocs}; + return std::tuple, bool>(PHIVal, ValidForAllLocs); } std::tuple InstrRefBasedLDV::vlocJoin(