[llvm] CodeGen: Don't assert when printing null GlobalAddress operands (PR #115531)
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 19:47:13 PST 2024
qcolombet 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
So how do you run into this problem?
It sounds to me that we shouldn't produce nullptr for GlobalAddress in a normal compilation flow.
https://github.com/llvm/llvm-project/pull/115531
More information about the llvm-commits
mailing list