Skip to content

Commit 0ec4a87

Browse files
committed
Fix build since b288f7d
This change introduced a use of std::make_unique() which some compilers reject in c++11 mode.
1 parent 686a889 commit 0ec4a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/CodeGen/MachineInstrTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class BogusTargetMachine : public LLVMTargetMachine {
140140
};
141141

142142
std::unique_ptr<MCContext> createMCContext(MCAsmInfo *AsmInfo) {
143-
return std::make_unique<MCContext>(AsmInfo, nullptr, nullptr, nullptr, false);
143+
return llvm::make_unique<MCContext>(AsmInfo, nullptr, nullptr, nullptr, false);
144144
}
145145

146146
std::unique_ptr<BogusTargetMachine> createTargetMachine() {

0 commit comments

Comments
 (0)