File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ MachOPlatform::MachOPlatform(
487487 if ((Err = ES.getBootstrapMapValue <bool , bool >(" darwin-use-ehframes-only" ,
488488 ForceEHFrames)))
489489 return ;
490- this ->ForceEHFrames = ForceEHFrames.has_value () ? *ForceEHFrames : false ;
490+ this ->ForceEHFrames = ForceEHFrames.value_or ( false ) ;
491491 }
492492
493493 BootstrapInfo BI;
Original file line number Diff line number Diff line change @@ -2151,8 +2151,8 @@ void SampleProfileLoader::removePseudoProbeInstsDiscriminator(Module &M) {
21512151 std::optional<uint32_t > DwarfDiscriminator =
21522152 PseudoProbeDwarfDiscriminator::extractDwarfBaseDiscriminator (
21532153 Discriminator);
2154- I.setDebugLoc (DIL-> cloneWithDiscriminator (
2155- DwarfDiscriminator ? *DwarfDiscriminator : 0 ));
2154+ I.setDebugLoc (
2155+ DIL-> cloneWithDiscriminator ( DwarfDiscriminator. value_or ( 0 ) ));
21562156 }
21572157 }
21582158 }
You can’t perform that action at this time.
0 commit comments