mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
compiler: parse the empty frame-pointer
This commit is contained in:
parent
c72a6ad8f2
commit
761ba5bb07
@ -675,8 +675,8 @@ mod parse {
|
|||||||
pub(crate) fn parse_frame_pointer(slot: &mut FramePointer, v: Option<&str>) -> bool {
|
pub(crate) fn parse_frame_pointer(slot: &mut FramePointer, v: Option<&str>) -> bool {
|
||||||
let mut yes = false;
|
let mut yes = false;
|
||||||
match v {
|
match v {
|
||||||
Some(_) if parse_bool(&mut yes, v) && yes => slot.ratchet(FramePointer::Always),
|
_ 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) => slot.ratchet(FramePointer::MayOmit),
|
||||||
Some("always") => slot.ratchet(FramePointer::Always),
|
Some("always") => slot.ratchet(FramePointer::Always),
|
||||||
Some("non-leaf") => slot.ratchet(FramePointer::NonLeaf),
|
Some("non-leaf") => slot.ratchet(FramePointer::NonLeaf),
|
||||||
_ => return false,
|
_ => return false,
|
||||||
|
Loading…
Reference in New Issue
Block a user