[llvm] [Statepoint] Return undef value for the statepoint of the none token (PR #72552)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 13:53:42 PST 2023
================
@@ -870,6 +870,11 @@ const Value *GCProjectionInst::getStatepoint() const {
if (isa<UndefValue>(Token))
return Token;
+ // Treat none token as if it was undef here
+ if (isa<ConstantTokenNone>(Token)) {
+ return UndefValue::get(Token->getType());
+ }
----------------
arpilipe wrote:
Nit.
```suggestion
if (isa<ConstantTokenNone>(Token))
return UndefValue::get(Token->getType());
```
https://github.com/llvm/llvm-project/pull/72552
More information about the llvm-commits
mailing list