diff --git a/llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp index 74446fc77cd8..c8b3ee75bd26 100644 --- a/llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp @@ -56,7 +56,7 @@ TEST(BenchmarkResultTest, WriteToAndReadFromDisk) { LLVMInitializeX86TargetMC(); // Read benchmarks. - const LLVMState State; + const LLVMState State("x86_64-unknown-linux", "haswell"); llvm::ExitOnError ExitOnErr;