diff --git a/src/target/llvm/llvm_instance.cc b/src/target/llvm/llvm_instance.cc index b3f55594a25f..a3a070aee4b2 100644 --- a/src/target/llvm/llvm_instance.cc +++ b/src/target/llvm/llvm_instance.cc @@ -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) {