Skip to content

Commit

Permalink
compiler: parse the empty frame-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jun 23, 2024
1 parent c72a6ad commit 761ba5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ mod parse {
pub(crate) fn parse_frame_pointer(slot: &mut FramePointer, v: Option<&str>) -> bool {
let mut yes = false;
match v {
Some(_) if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
Some(_) if parse_bool(&mut yes, v) => slot.ratchet(FramePointer::MayOmit),
_ if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
_ if parse_bool(&mut yes, v) => slot.ratchet(FramePointer::MayOmit),
Some("always") => slot.ratchet(FramePointer::Always),
Some("non-leaf") => slot.ratchet(FramePointer::NonLeaf),
_ => return false,
Expand Down

0 comments on commit 761ba5b

Please sign in to comment.