about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2024-03-24 01:03:39 +0000
committerbeetrees <b@beetr.ee>2024-04-01 03:05:55 +0100
commit6e5f1dacf3a670cf03111039a032c765355839aa (patch)
tree5a5237669ecb2b93d1350ce37d8a011de4ec94c2 /compiler/rustc_codegen_llvm/src/attributes.rs
parent2f090c30ddd6b3bbe5c81c087579a5166e7c7278 (diff)
downloadrust-6e5f1dacf3a670cf03111039a032c765355839aa.tar.gz
rust-6e5f1dacf3a670cf03111039a032c765355839aa.zip
Use the `Align` type when parsing alignment attributes
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/attributes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs
index f9eaa0d94cb..870e5ab3296 100644
--- a/compiler/rustc_codegen_llvm/src/attributes.rs
+++ b/compiler/rustc_codegen_llvm/src/attributes.rs
@@ -417,7 +417,7 @@ pub fn from_fn_attrs<'ll, 'tcx>(
         to_add.push(llvm::CreateAttrString(cx.llcx, "cmse_nonsecure_entry"));
     }
     if let Some(align) = codegen_fn_attrs.alignment {
-        llvm::set_alignment(llfn, align as usize);
+        llvm::set_alignment(llfn, align);
     }
     to_add.extend(sanitize_attrs(cx, codegen_fn_attrs.no_sanitize));