Skip to content

Commit 8a631d7

Browse files
committed
[TableGen] Fix ReplaceRegAction RTTI Kind
1 parent 7f4f237 commit 8a631d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,11 +2351,11 @@ class ReplaceRegAction : public MatchAction {
23512351
public:
23522352
ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned NewInsnId,
23532353
unsigned NewOpIdx)
2354-
: MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
2354+
: MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
23552355
NewInsnId(NewInsnId), NewOpIdx(NewOpIdx) {}
23562356

23572357
ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned TempRegID)
2358-
: MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
2358+
: MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx),
23592359
TempRegID(TempRegID) {}
23602360

23612361
static bool classof(const MatchAction *A) {

0 commit comments

Comments
 (0)