Mark naked functions as never inline in codegen_fn_attrs
Use code generation attributes to ensure that naked functions are never inline, replacing separate checks in MIR inliner and LLVM code generation.
This commit is contained in:
parent
c955add18c
commit
b740cdcf43
3 changed files with 7 additions and 11 deletions
|
@ -363,10 +363,6 @@ impl<'tcx> Inliner<'tcx> {
|
|||
return Err("C variadic");
|
||||
}
|
||||
|
||||
if callee_attrs.flags.contains(CodegenFnAttrFlags::NAKED) {
|
||||
return Err("naked");
|
||||
}
|
||||
|
||||
if callee_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
|
||||
return Err("cold");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue