summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2019-11-15 09:21:39 -0800
committerTom Stellard <tstellar@redhat.com>2019-11-15 09:21:39 -0800
commit0ec4a87c38da31e5bf68f93e3c9b829cd04bcdfd (patch)
treedcffd5171f6fdbb6b76701c201029e8d1f028a40
parent686a8891ca57463ec0d2f3ae4f732e6259cedc33 (diff)
downloadllvm-0ec4a87c38da31e5bf68f93e3c9b829cd04bcdfd.tar.gz
Fix build since b288f7d
This change introduced a use of std::make_unique() which some compilers reject in c++11 mode.
-rw-r--r--llvm/unittests/CodeGen/MachineInstrTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp
index f09ea7baad16..ef0115c4b468 100644
--- a/llvm/unittests/CodeGen/MachineInstrTest.cpp
+++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp
@@ -140,7 +140,7 @@ private:
};
std::unique_ptr<MCContext> createMCContext(MCAsmInfo *AsmInfo) {
- return std::make_unique<MCContext>(AsmInfo, nullptr, nullptr, nullptr, false);
+ return llvm::make_unique<MCContext>(AsmInfo, nullptr, nullptr, nullptr, false);
}
std::unique_ptr<BogusTargetMachine> createTargetMachine() {