about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/example.rs
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2024-07-11 20:06:05 +0300
committerLaurențiu Nicola <lnicola@dend.ro>2024-07-11 20:06:05 +0300
commit62bbce2ad2b20d5cf1282da407d01de5c54161f1 (patch)
tree24923a8226aad3064a6c5739540c2d404d64f76e /compiler/rustc_codegen_gcc/example/example.rs
parentb159b3fd80f7aac6aef57c64f820adbc11bc692c (diff)
parentbcf1f6db4594ae6132378b179a30cdb3599a863d (diff)
downloadrust-62bbce2ad2b20d5cf1282da407d01de5c54161f1.tar.gz
rust-62bbce2ad2b20d5cf1282da407d01de5c54161f1.zip
Merge from rust-lang/rust
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
-rw-r--r--compiler/rustc_codegen_gcc/example/example.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_gcc/example/example.rs b/compiler/rustc_codegen_gcc/example/example.rs
index 7c21b73b630..03470b74d0a 100644
--- a/compiler/rustc_codegen_gcc/example/example.rs
+++ b/compiler/rustc_codegen_gcc/example/example.rs
@@ -153,10 +153,9 @@ fn array_as_slice(arr: &[u8; 3]) -> &[u8] {
     arr
 }
 
-// FIXME: fix the intrinsic implementation to work with the new ->u32 signature
-// unsafe fn use_ctlz_nonzero(a: u16) -> u32 {
-//     intrinsics::ctlz_nonzero(a)
-// }
+unsafe fn use_ctlz_nonzero(a: u16) -> u32 {
+    intrinsics::ctlz_nonzero(a)
+}
 
 fn ptr_as_usize(ptr: *const u8) -> usize {
     ptr as usize