Skip to content

Commit 5053a4f

Browse files
[LLVM] Fix compilation failure due to minor change (#16812)
This is just a minor fix where the recent [PR #16425](#16425) seems to have missed this change for LLVM 18 and above, and so we're running into a compilaion failure.
1 parent c3be89a commit 5053a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/llvm/llvm_instance.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ LLVMTargetInfo::LLVMTargetInfo(LLVMInstance& instance, const TargetJSON& target)
313313
}
314314
#else
315315
if (maybe_level.defined()) {
316-
int level = maybe_level.value()->value;
316+
int level = maybe_level->value;
317317
if (level <= 0) {
318318
opt_level_ = llvm::CodeGenOptLevel::None;
319319
} else if (level == 1) {

0 commit comments

Comments
 (0)