diff options
| -rw-r--r-- | llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h index aa86fad..871fe04 100644 --- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h +++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h @@ -2351,11 +2351,11 @@ class ReplaceRegAction : public MatchAction { public: ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned NewInsnId, unsigned NewOpIdx) - : MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx), + : MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx), NewInsnId(NewInsnId), NewOpIdx(NewOpIdx) {} ReplaceRegAction(unsigned OldInsnID, unsigned OldOpIdx, unsigned TempRegID) - : MatchAction(AK_EraseInst), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx), + : MatchAction(AK_ReplaceReg), OldInsnID(OldInsnID), OldOpIdx(OldOpIdx), TempRegID(TempRegID) {} static bool classof(const MatchAction *A) { |
