Skip to content

Commit b8c544d

Browse files
authored
Rollup merge of #93004 - krasimirgg:threadlocal-llvm-up, r=nikic
update codegen test for LLVM 14 Fixes #93003.
2 parents baeff67 + e4607ff commit b8c544d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/test/codegen/thread-local.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) });
1919
// CHECK-LABEL: @get
2020
#[no_mangle]
2121
fn get() -> u32 {
22-
// CHECK: %0 = load i32, i32* bitcast ({{.*}} [[TLS]] to i32*)
22+
// CHECK: %0 = load i32, i32* {{.*}}[[TLS]]{{.*}}
2323
// CHECK-NEXT: ret i32 %0
2424
A.with(|a| a.get())
2525
}
2626

2727
// CHECK-LABEL: @set
2828
#[no_mangle]
2929
fn set(v: u32) {
30-
// CHECK: store i32 %0, i32* bitcast ({{.*}} [[TLS]] to i32*)
30+
// CHECK: store i32 %0, i32* {{.*}}[[TLS]]{{.*}}
3131
// CHECK-NEXT: ret void
3232
A.with(|a| a.set(v))
3333
}

0 commit comments

Comments
 (0)