[libunwind] [llvm] libunwind: Use libgcc's function context layout for sjlj (PR #238128)
Sergei Barannikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 23:59:40 PST 2026
================
@@ -2369,10 +2369,10 @@ VETargetLowering::emitSjLjDispatchBlock(MachineInstr &MI,
"No landing pad destinations for the dispatch jump table!");
// The %fn_context is allocated like below (from --print-after=sjljehprepare):
- // %fn_context = alloca { i8*, i64, [4 x i64], i8*, i8*, [5 x i8*] }
+ // %fn_context = alloca { ptr, i32, [4 x i64], ptr, ptr, [5 x ptr] }
----------------
s-barannikov wrote:
I guess not, I was confused by clang manually padding structs while LangRef says fields are naturally aligned.
https://github.com/llvm/llvm-project/pull/238128
More information about the cfe-commits
mailing list