diff --git a/llvm/unittests/Target/VE/MachineInstrTest.cpp b/llvm/unittests/Target/VE/MachineInstrTest.cpp index b472ab8ba180..2bf1e98a14c1 100644 --- a/llvm/unittests/Target/VE/MachineInstrTest.cpp +++ b/llvm/unittests/Target/VE/MachineInstrTest.cpp @@ -285,7 +285,7 @@ TEST(VETest, VLIndex) { auto TM = std::unique_ptr( static_cast( T->createTargetMachine(TT, "ve", "", Options, std::nullopt, std::nullopt, - CodeGenOpt::Default))); + CodeGenOptLevel::Default))); VESubtarget ST(TM->getTargetTriple(), std::string(TM->getTargetCPU()), std::string(TM->getTargetFeatureString()), *static_cast(TM.get()));