summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp b/llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
index dc2d1f9a357..0c184d37187 100644
--- a/llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
+++ b/llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
@@ -42,8 +42,9 @@ protected:
return;
TargetOptions Options;
- TM = std::unique_ptr<TargetMachine>(T->createTargetMachine(
- "AArch64", "", "", Options, None, None, CodeGenOpt::Aggressive));
+ TM = std::unique_ptr<LLVMTargetMachine>(static_cast<LLVMTargetMachine*>(
+ T->createTargetMachine("AArch64", "", "", Options, None, None,
+ CodeGenOpt::Aggressive)));
if (!TM)
return;
@@ -70,7 +71,7 @@ protected:
}
LLVMContext Context;
- std::unique_ptr<TargetMachine> TM = nullptr;
+ std::unique_ptr<LLVMTargetMachine> TM;
std::unique_ptr<Module> M;
Function *F;
std::unique_ptr<MachineFunction> MF;
OpenPOWER on IntegriCloud