GCC-9 takes advantage of this uninitialized values to optimize stuff, which ends up in failing validation when compiling clang.
This fixes https://bugs.llvm.org/show_bug.cgi?id=40547
Differential D57523
Fix uninitialized value in ABIArgInfo serge-sans-paille on Jan 31 2019, 9:35 AM. Authored by
Details GCC-9 takes advantage of this uninitialized values to optimize stuff, which ends up in failing validation when compiling clang. This fixes https://bugs.llvm.org/show_bug.cgi?id=40547
Diff Detail
Event TimelineComment Actions I've been staring at this, trying to figure out if the code somehow ends up using the uninitialized values, but I can't find it. So either it's hard to find, or GCC is doing something wrong. But anyway, I think committing your change makes sense, but I think don't think we can say "Fix uninitialized value in ABIArgInfo", because it's not clear what needs fixing. Instead, I'd say "Always initialize the members in ABIArgInfo". That kind of makes sense in itself as it makes the code safer and possibly simpler, and of course it's also good that it fixes this problem. What do you think? |