diff options
Diffstat (limited to 'llvm/lib/IR/Statepoint.cpp')
| -rw-r--r-- | llvm/lib/IR/Statepoint.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/IR/Statepoint.cpp b/llvm/lib/IR/Statepoint.cpp index 13e8c6312a6..63be1e780d8 100644 --- a/llvm/lib/IR/Statepoint.cpp +++ b/llvm/lib/IR/Statepoint.cpp @@ -45,13 +45,7 @@ bool llvm::isGCRelocate(ImmutableCallSite CS) { } bool llvm::isGCResult(ImmutableCallSite CS) { - if (auto *F = getCalledFunction(CS)) - return F->getIntrinsicID() == Intrinsic::experimental_gc_result; - return false; -} - -bool llvm::isGCResult(const Value *V) { - return isGCResult(ImmutableCallSite(V)); + return CS.getInstruction() && isa<GCResultInst>(CS.getInstruction()); } bool llvm::isStatepointDirectiveAttr(Attribute Attr) { |

