Skip to content

Commit 5ca94f9

Browse files
[llvm-jitlink] Use std::optional::value_or (NFC) (#140173)
1 parent 0f0fd62 commit 5ca94f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ Session::Session(std::unique_ptr<ExecutorProcessControl> EPC, Error &Err)
12431243
if ((Err = ES.getBootstrapMapValue<bool, bool>("darwin-use-ehframes-only",
12441244
ForceEHFrames)))
12451245
return;
1246-
bool UseEHFrames = ForceEHFrames ? *ForceEHFrames : false;
1246+
bool UseEHFrames = ForceEHFrames.value_or(false);
12471247
if (!UseEHFrames)
12481248
ObjLayer.addPlugin(ExitOnErr(UnwindInfoRegistrationPlugin::Create(ES)));
12491249
else

0 commit comments

Comments
 (0)