summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/TargetInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Core/TargetInfo.cpp')
-rw-r--r--lld/lib/Core/TargetInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/lib/Core/TargetInfo.cpp b/lld/lib/Core/TargetInfo.cpp
index 8793b73f02e..eb69bc5772c 100644
--- a/lld/lib/Core/TargetInfo.cpp
+++ b/lld/lib/Core/TargetInfo.cpp
@@ -38,7 +38,8 @@ error_code TargetInfo::readFile(StringRef path,
if (error_code ec = llvm::MemoryBuffer::getFileOrSTDIN(path, opmb))
return ec;
- return this->parseFile(std::unique_ptr<MemoryBuffer>(opmb.take()), result);
+ std::unique_ptr<MemoryBuffer> mb(opmb.take());
+ return this->parseFile(mb, result);
}
error_code TargetInfo::writeFile(const File &linkedFile) const {
OpenPOWER on IntegriCloud