[llvm] r308551 - Use llvm::make_unique to try to fix the windows build.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 16:38:54 PDT 2017
Author: rafael
Date: Wed Jul 19 16:38:54 2017
New Revision: 308551
URL: http://llvm.org/viewvc/llvm-project?rev=308551&view=rev
Log:
Use llvm::make_unique to try to fix the windows build.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=308551&r1=308550&r2=308551&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Wed Jul 19 16:38:54 2017
@@ -1253,12 +1253,12 @@ std::unique_ptr<DWARFContext>
DWARFContext::create(const object::ObjectFile &Obj, const LoadedObjectInfo *L,
function_ref<ErrorPolicy(Error)> HandleError) {
auto DObj = make_unique<DWARFObjInMemory>(Obj, L, HandleError);
- return make_unique<DWARFContext>(std::move(DObj));
+ return llvm::make_unique<DWARFContext>(std::move(DObj));
}
std::unique_ptr<DWARFContext>
DWARFContext::create(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections,
uint8_t AddrSize, bool isLittleEndian) {
auto DObj = make_unique<DWARFObjInMemory>(Sections, AddrSize, isLittleEndian);
- return make_unique<DWARFContext>(std::move(DObj));
+ return llvm::make_unique<DWARFContext>(std::move(DObj));
}
More information about the llvm-commits
mailing list