We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a153133 commit 842adc2Copy full SHA for 842adc2
compiler/rustc_codegen_llvm/src/context.rs
@@ -372,6 +372,15 @@ pub(crate) unsafe fn create_module<'ll>(
372
}
373
374
375
+ if let Some(regparm_count) = sess.opts.unstable_opts.regparm {
376
+ llvm::add_module_flag_u32(
377
+ llmod,
378
+ llvm::ModuleFlagMergeBehavior::Error,
379
+ "NumRegisterParameters",
380
+ regparm_count,
381
+ );
382
+ }
383
+
384
if let Some(BranchProtection { bti, pac_ret }) = sess.opts.unstable_opts.branch_protection {
385
if sess.target.arch == "aarch64" {
386
llvm::add_module_flag_u32(
0 commit comments