Skip to content

Commit

Permalink
Excluding functions with compiler_builtins as builtin functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DianQK committed Dec 3, 2023
1 parent ba43cfa commit bd662ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_codegen_ssa/src/back/symbol_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ fn reachable_non_generics_provider(tcx: TyCtxt<'_>, _: LocalCrate) -> DefIdMap<S
// We have to preserve the symbols of the built-in functions during LTO.
let is_builtin_fn = is_compiler_builtins
&& symbol_export_level(tcx, def_id.to_def_id())
.is_below_threshold(SymbolExportLevel::C);
.is_below_threshold(SymbolExportLevel::C)
&& name.contains("compiler_builtins");
let used = name == "rust_eh_personality";

let export_level = if special_runtime_crate {
Expand Down

0 comments on commit bd662ce

Please sign in to comment.