[llvm] fb41cae - More precisely type code used for gc.relocate assertions [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 6 11:27:43 PDT 2021
Author: Philip Reames
Date: 2021-04-06T11:27:36-07:00
New Revision: fb41cae03976f5148af15684a64b3172beed47d5
URL: https://github.com/llvm/llvm-project/commit/fb41cae03976f5148af15684a64b3172beed47d5
DIFF: https://github.com/llvm/llvm-project/commit/fb41cae03976f5148af15684a64b3172beed47d5.diff
LOG: More precisely type code used for gc.relocate assertions [nfc]
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
index 634ef87f3840e..addc0a7eef3a4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
+++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.h
@@ -18,11 +18,11 @@
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/SelectionDAGNodes.h"
+#include "llvm/IR/IntrinsicInst.h"
#include <cassert>
namespace llvm {
-class CallInst;
class SelectionDAGBuilder;
/// This class tracks both per-statepoint and per-selectiondag information.
@@ -63,7 +63,7 @@ class StatepointLoweringState {
/// Record the fact that we expect to encounter a given gc_relocate
/// before the next statepoint. If we don't see it, we'll report
/// an assertion.
- void scheduleRelocCall(const CallInst &RelocCall) {
+ void scheduleRelocCall(const GCRelocateInst &RelocCall) {
// We are not interested in lowering dead instructions.
if (!RelocCall.use_empty())
PendingGCRelocateCalls.push_back(&RelocCall);
@@ -72,7 +72,7 @@ class StatepointLoweringState {
/// Remove this gc_relocate from the list we're expecting to see
/// before the next statepoint. If we weren't expecting to see
/// it, we'll report an assertion.
- void relocCallVisited(const CallInst &RelocCall) {
+ void relocCallVisited(const GCRelocateInst &RelocCall) {
// We are not interested in lowering dead instructions.
if (RelocCall.use_empty())
return;
@@ -118,7 +118,7 @@ class StatepointLoweringState {
unsigned NextSlotToAllocate = 0;
/// Keep track of pending gcrelocate calls for consistency check
- SmallVector<const CallInst *, 10> PendingGCRelocateCalls;
+ SmallVector<const GCRelocateInst *, 10> PendingGCRelocateCalls;
};
} // end namespace llvm
More information about the llvm-commits
mailing list