[llvm] r206632 - DebugInfo: Remove some initializer lists to make MSVC happy again.

Benjamin Kramer benny.kra at googlemail.com
Fri Apr 18 12:01:53 PDT 2014


Author: d0k
Date: Fri Apr 18 14:01:53 2014
New Revision: 206632

URL: http://llvm.org/viewvc/llvm-project?rev=206632&view=rev
Log:
DebugInfo: Remove some initializer lists to make MSVC happy again.

Modified:
    llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp

Modified: llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp?rev=206632&r1=206631&r2=206632&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp Fri Apr 18 14:01:53 2014
@@ -229,11 +229,11 @@ bool DWARFDebugInfoEntryMinimal::getLowA
 DWARFAddressRangesVector
 DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const {
   if (isNULL())
-    return DWARFAddressRangesVector{};
+    return DWARFAddressRangesVector();
   // Single range specified by low/high PC.
   uint64_t LowPC, HighPC;
   if (getLowAndHighPC(U, LowPC, HighPC)) {
-    return DWARFAddressRangesVector{std::make_pair(LowPC, HighPC)};
+    return DWARFAddressRangesVector(1, std::make_pair(LowPC, HighPC));
   }
   // Multiple ranges from .debug_ranges section.
   uint32_t RangesOffset =
@@ -243,7 +243,7 @@ DWARFDebugInfoEntryMinimal::getAddressRa
     if (U->extractRangeList(RangesOffset, RangeList))
       return RangeList.getAbsoluteRanges(U->getBaseAddress());
   }
-  return DWARFAddressRangesVector{};
+  return DWARFAddressRangesVector();
 }
 
 void DWARFDebugInfoEntryMinimal::collectChildrenAddressRanges(





More information about the llvm-commits mailing list