diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index 870e5ab329619..0f9aa0fa1a80f 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -113,8 +113,9 @@ pub fn frame_pointer_type_attr<'ll>(cx: &CodegenCx<'ll, '_>) -> Option<&'ll Attr } let attr_value = match fp { FramePointer::Always => "all", - FramePointer::NonLeaf => "non-leaf", - FramePointer::MayOmit => return None, + // TODO: a real impl instead of a shitty one-off hack + FramePointer::NonLeaf | FramePointer::MayOmit => "non-leaf", + // FramePointer::MayOmit => return None, }; Some(llvm::CreateAttrStringValue(cx.llcx, "frame-pointer", attr_value)) }