rjmccall wrote:

I agree with Eli.  We should trust external record layout to the extent that it 
generates a valid layout, but if it generates something with overlapping 
fields, or that runs outside the claimed bounds of the type, we'll just end up 
crashing in IRGen.  I assume those things are expressible in DWARF; it'd take a 
bunch of sub-optimal representations to make them impossible.  It's probably 
clang's responsibility to detect that — maybe we ought to do a special sanity 
check on external layouts before we feed them into `RecordLayout`.

https://github.com/llvm/llvm-project/pull/93809
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to