diff options
| author | Krasimir Georgiev <Mister Nobody the Robot> | 2022-01-17 15:57:08 +0100 |
|---|---|---|
| committer | Krasimir Georgiev <Mister Nobody the Robot> | 2022-01-17 15:57:08 +0100 |
| commit | 853feb6964a9d531d802573f5a44d85e4d2a41b6 (patch) | |
| tree | 361e32e3c9ffc8512262338ec824cb106c32e8af | |
| parent | a34c0797528172ede89480e3033f7a5e71ea4735 (diff) | |
| download | rust-853feb6964a9d531d802573f5a44d85e4d2a41b6.tar.gz rust-853feb6964a9d531d802573f5a44d85e4d2a41b6.zip | |
update codegen test for LLVM 14
Fixes https://github.com/rust-lang/rust/issues/93003.
| -rw-r--r-- | src/test/codegen/thread-local.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/thread-local.rs b/src/test/codegen/thread-local.rs index 5ac30d949fa..c6bb27cbd74 100644 --- a/src/test/codegen/thread-local.rs +++ b/src/test/codegen/thread-local.rs @@ -19,7 +19,7 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) }); // CHECK-LABEL: @get #[no_mangle] fn get() -> u32 { - // CHECK: %0 = load i32, i32* bitcast ({{.*}} [[TLS]] to i32*) + // CHECK: %0 = load i32, i32* [[TLS]], align 4 // CHECK-NEXT: ret i32 %0 A.with(|a| a.get()) } @@ -27,7 +27,7 @@ fn get() -> u32 { // CHECK-LABEL: @set #[no_mangle] fn set(v: u32) { - // CHECK: store i32 %0, i32* bitcast ({{.*}} [[TLS]] to i32*) + // CHECK: store i32 %0, i32* [[TLS]], align 4 // CHECK-NEXT: ret void A.with(|a| a.set(v)) } |
