[llvm-branch-commits] [llvm] 0ec4a87 - Fix build since b288f7d
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 15 09:40:28 PST 2019
Author: Tom Stellard
Date: 2019-11-15T09:21:39-08:00
New Revision: 0ec4a87c38da31e5bf68f93e3c9b829cd04bcdfd
URL: https://github.com/llvm/llvm-project/commit/0ec4a87c38da31e5bf68f93e3c9b829cd04bcdfd
DIFF: https://github.com/llvm/llvm-project/commit/0ec4a87c38da31e5bf68f93e3c9b829cd04bcdfd.diff
LOG: Fix build since b288f7d
This change introduced a use of std::make_unique() which some compilers
reject in c++11 mode.
Added:
Modified:
llvm/unittests/CodeGen/MachineInstrTest.cpp
Removed:
################################################################################
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 @@ class BogusTargetMachine : public LLVMTargetMachine {
};
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() {
More information about the llvm-branch-commits
mailing list