[clang] [CIR] Correct union lowering behavior re-padding (PR #216349)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 14 16:48:40 PDT 2026


================
@@ -63,3 +76,4 @@ extern "C" Trivial ret_trivial() { return {}; }
   // OGCG: %[[COERCE_DIVE:.*]] = getelementptr inbounds nuw %union.Trivial, ptr %[[RET_ALLOCA]], i32 0, i32 0
   // OGCG: %[[RET:.*]] = load i32, ptr %[[COERCE_DIVE]]
   // LLVM: ret i32 %[[RET]]
+
----------------
andykaylor wrote:

Extra new line at the end of the file.

https://github.com/llvm/llvm-project/pull/216349


More information about the cfe-commits mailing list