[Statepoint] Return undef value for the statepoint of the none token (#72552)
commit44af5924b1cbbb395e7e71250a5445053c4ec4a3
authorDanila Malyutin <danilaml@users.noreply.github.com>
Fri, 17 Nov 2023 14:32:52 +0000 (17 18:32 +0400)
committerGitHub <noreply@github.com>
Fri, 17 Nov 2023 14:32:52 +0000 (17 18:32 +0400)
tree3901a6ee1f2f50e5a3970ef4470fae1a190ee3fa
parent2ed15877e7427801d1699611d0b29f23718b01ab
[Statepoint] Return undef value for the statepoint of the none token (#72552)

Helps avoid the crash in verifier when it tries to print the error.
`none` token might be produced by llvm-reduce, since it's a default
value, so by extension this also fixes llvm-reduce crash, allowing it to
just discard invalid IR.

---------

Co-authored-by: arpilipe <apilipenko@azul.com>
llvm/lib/IR/IntrinsicInst.cpp
llvm/test/Verifier/gc_none_token.ll [new file with mode: 0644]