Skip to content

Commit

Permalink
[LLVM] Fix compilation failure due to minor change
Browse files Browse the repository at this point in the history
This is just a minor fix where the recent [PR apache#16425](apache#16425) seems
to have missed this change for LLVM 18 and above, and so we're running
into a compilaion failure.
  • Loading branch information
quic-sanirudh committed Mar 28, 2024
1 parent 4c45b82 commit 4a3da13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/llvm_instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ LLVMTargetInfo::LLVMTargetInfo(LLVMInstance& instance, const TargetJSON& target)
}
#else
if (maybe_level.defined()) {
int level = maybe_level.value()->value;
int level = maybe_level->value;
if (level <= 0) {
opt_level_ = llvm::CodeGenOptLevel::None;
} else if (level == 1) {
Expand Down

0 comments on commit 4a3da13

Please sign in to comment.