================
@@ -127,7 +128,7 @@ int check_load_exception(st3 *s3) {
 
 // LLVM:define dso_local i32 @check_load_exception
 // LLVM:  [[LOAD:%.*]] = load ptr, ptr {{.*}}, align 8
-// LLVM:  [[MEMBER:%.*]] = getelementptr inbounds nuw %struct.st3, ptr 
[[LOAD]], i32 0, i32 3
+// LLVM:  [[MEMBER:%.*]] = getelementptr inbounds nuw %struct.st3, ptr 
[[LOAD]], i32 0, i32 2
----------------
andykaylor wrote:

We're not checking the LLVM or CIR struct type for st3, but it had a `[0 x i8]` 
field marking a zero-width bitfield that is no longer present. This previously 
changed from `2` to `3` here 
(https://github.com/llvm/llvm-project/pull/217517/changes#diff-a0bf3e1a8940a1277e85b402bde6c1bb923c858196e96bb8196fc506f6ced3fa).
 This is restoring the original index, which once again aligns with the OGCG 
check below.

https://github.com/llvm/llvm-project/pull/221030
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to