Skip to content

Commit

Permalink
Unrolled build for rust-lang#119201
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#119201 - durin42:overaligned-constant, r=Mark-Simulacrum

tests: fix overaligned-constant to not over-specify getelementptr instr

On LLVM 18 we get slightly different arguments here, so it's easier to just regex those away. The important details are all still asserted as I understand things.

Fixes rust-lang#119193.

`@rustbot` label: +llvm-main
  • Loading branch information
rust-timer authored Dec 22, 2023
2 parents 208dd20 + 58fdbd1 commit 5f41792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codegen/overaligned-constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
// CHECK: [[full:%_.*]] = alloca %SmallStruct, align 8
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr align 8 [[full]], ptr align 8 @0, i64 32, i1 false)
// CHECK: %b.0 = load i32, ptr @0, align 4,
// CHECK: %b.1 = load i32, ptr getelementptr inbounds ({ i32, i32 }, ptr @0, i32 0, i32 1), align 4
// CHECK: %b.1 = load i32, ptr getelementptr inbounds ({{.*}}), align 4
let mut s = S(1);

s.0 = 3;
Expand Down

0 comments on commit 5f41792

Please sign in to comment.