[llvm] CodeGen: Don't assert when printing null GlobalAddress operands (PR #115531)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 11:11:02 PST 2024
arsenm wrote:
> I'm guessing this is for mir files. I ran into this problem in the past.
>
> LGTM, but could you add a mir test and here add a comment that specifically says that this shouldn't be the state of a well formed ir. (Unless you're fixing a real bug, and then we are missing a test anyway)
I don't think this can be constructed from MIR. A literal 0 won't parse as a GlobalAddress
https://github.com/llvm/llvm-project/pull/115531
More information about the llvm-commits
mailing list