diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp --- a/llvm/lib/MC/MCWin64EH.cpp +++ b/llvm/lib/MC/MCWin64EH.cpp @@ -532,11 +532,9 @@ bool Match = true; for (unsigned i = 0; i < Instrs.size(); ++i) - if (Instrs[i].Operation != EpilogInstrs[i].Operation || - Instrs[i].Offset != EpilogInstrs[i].Offset || - Instrs[i].Register != EpilogInstrs[i].Register) { - Match = false; - break; + if (Instrs[i] != EpilogInstrs[i]) { + Match = false; + break; } if (Match)