Skip to content

Commit 3448ca9

Browse files
committed
server/codegen: LLVM compatibility fix
1 parent c7cac69 commit 3448ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/codegenerator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CodeGenerator::impl {
9292
/*Features=*/"", /*Options=*/target_options,
9393
/*RelocModel=*/rm,
9494
/*CodeModel=*/cm,
95-
/*OptLevel=*/static_cast<llvm::CodeGenOpt::Level>(targetopt),
95+
/*OptLevel=*/static_cast<llvm::CodeGenOpt::Level>(unsigned(targetopt)),
9696
/*JIT=*/true
9797
));
9898
if (!target) {

0 commit comments

Comments
 (0)