Skip to content

Commit c7094f0

Browse files
authored
Fix compilation error (#392)
1 parent 95ee215 commit c7094f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/polygeist/Passes/SerializeToHsaco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ SerializeToHsacoPass::optimizeLlvm(llvm::Module &llvmModule,
132132
<< "Invalid serizalize to gpu blob optimization level"
133133
<< llvmOptLevel << "\n";
134134

135-
targetMachine.setOptLevel(static_cast<llvm::CodeGenOpt::Level>(llvmOptLevel));
135+
targetMachine.setOptLevel(static_cast<llvm::CodeGenOptLevel>(llvmOptLevel));
136136

137137
auto transformer =
138138
makeOptimizingTransformer(llvmOptLevel, /*sizeLevel=*/0, &targetMachine);

0 commit comments

Comments
 (0)