diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2025-04-18 11:45:30 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2025-04-18 11:45:30 -0400 |
| commit | 98dd5a30b32c1311d5a44ebb2c0667a8ff0ef76a (patch) | |
| tree | 77eb2bafe886e910c5c30513d430260bba7c9c52 | |
| parent | 65b87aae21096c0f22d141ceaf7030ebdf6edbe4 (diff) | |
| download | rust-98dd5a30b32c1311d5a44ebb2c0667a8ff0ef76a.tar.gz rust-98dd5a30b32c1311d5a44ebb2c0667a8ff0ef76a.zip | |
Fix for libgccjit 12
| -rw-r--r-- | src/intrinsic/llvm.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intrinsic/llvm.rs b/src/intrinsic/llvm.rs index e030e3b4ff2..befb2e17960 100644 --- a/src/intrinsic/llvm.rs +++ b/src/intrinsic/llvm.rs @@ -22,6 +22,7 @@ fn encode_key_128_type<'a, 'gcc, 'tcx>( "EncodeKey128Output", &[field1, field2, field3, field4, field5, field6, field7], ); + #[cfg(feature = "master")] encode_type.as_type().set_packed(); (encode_type.as_type(), field1, field2) } @@ -43,6 +44,7 @@ fn encode_key_256_type<'a, 'gcc, 'tcx>( "EncodeKey256Output", &[field1, field2, field3, field4, field5, field6, field7, field8], ); + #[cfg(feature = "master")] encode_type.as_type().set_packed(); (encode_type.as_type(), field1, field2) } @@ -55,6 +57,7 @@ fn aes_output_type<'a, 'gcc, 'tcx>( let field2 = builder.context.new_field(None, m128i, "field2"); let aes_output_type = builder.context.new_struct_type(None, "AesOutput", &[field1, field2]); let typ = aes_output_type.as_type(); + #[cfg(feature = "master")] typ.set_packed(); (typ, field1, field2) } @@ -77,6 +80,7 @@ fn wide_aes_output_type<'a, 'gcc, 'tcx>( "WideAesOutput", &[field1, field2, field3, field4, field5, field6, field7, field8, field9], ); + #[cfg(feature = "master")] aes_output_type.as_type().set_packed(); (aes_output_type.as_type(), field1, field2) } |
