https://github.com/AlexVlx commented:
> I wasn't able to reproduce the bug (gcc 11.4.0), but it looks real. > > LegalizePointerCast has the same map to clean. Also my favoring _thing_ in > type rewriter - `TodoType` is also not being reset. Arguably there should be > more places to fix it. Which makes me leaning towards: > That's fine by me. What I suggest we consider doing is the following: - take this NFC for now as it fixes concrete breakage that users will run into if they try to generate use the size optimisation option we recently added; - I'll spend some time on the rework and create a new PR with that. > > An alternative solution might be to rework things so that we collect all > > values that could trigger this, and process them together, with no > > intervening creations / erasures. https://github.com/llvm/llvm-project/pull/239297 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
