Skip to content

Commit 97f89a5

Browse files
committed
rebase fix
1 parent 3b49a07 commit 97f89a5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

crates/stdarch-gen-arm/src/intrinsic.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,12 @@ fn create_tokens(intrinsic: &Intrinsic, endianness: Endianness, tokens: &mut Tok
17211721
Endianness::NA => {}
17221722
};
17231723

1724+
let expressions = match endianness {
1725+
Endianness::Little | Endianness::NA => &intrinsic.compose,
1726+
Endianness::Big => &intrinsic.big_endian_compose,
1727+
};
1728+
1729+
17241730
/* If we have manually defined attributes on the block of yaml with
17251731
* 'attr:' we want to add them */
17261732
if let Some(attr) = &intrinsic.attr {
@@ -1767,13 +1773,6 @@ fn create_tokens(intrinsic: &Intrinsic, endianness: Endianness, tokens: &mut Tok
17671773
}
17681774
tokens.append_all(quote! { #signature });
17691775

1770-
let expressions = match endianness {
1771-
Endianness::Little | Endianness::NA => &intrinsic.compose,
1772-
Endianness::Big => &intrinsic.big_endian_compose,
1773-
};
1774-
1775-
tokens.append_all(quote! { #signature });
1776-
17771776
// If the intrinsic function is explicitly unsafe, we populate `body_default_safety` with
17781777
// the implementation. No explicit unsafe blocks are required.
17791778
//

0 commit comments

Comments
 (0)