compiler: parse the empty frame-pointer

This commit is contained in:
Jubilee Young 2024-06-23 02:22:55 -07:00
parent c72a6ad8f2
commit 761ba5bb07

View File

@ -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,