Skip to content

Commit 9ef62a4

Browse files
committed
Fix generator.py to avoid pathological inlining
Commit 9104a90 fixed the generated files, but that change would be lost (or require additional manual intervention) if they are re-generated of if new architectures are added. cc rust-lang#28273
1 parent d89a10b commit 9ef62a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/etc/platform-intrinsics/generator.py

+1
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ def open(self, platform):
737737
use IntrinsicDef::Named;
738738
use rustc::middle::ty;
739739
740+
#[inline(never)]
740741
pub fn find<'tcx>(_tcx: &ty::ctxt<'tcx>, name: &str) -> Option<Intrinsic> {{
741742
if !name.starts_with("{0}") {{ return None }}
742743
Some(match &name["{0}".len()..] {{'''.format(platform.intrinsic_prefix())

0 commit comments

Comments
 (0)