[PATCH] D125368: [MC] [Win64EH] Simplify code using WinEH::Instruction::operator!=. NFC.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 05:26:03 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG490cd14fe6ff: [MC] [Win64EH] Simplify code using WinEH::Instruction::operator!=. NFC. (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125368/new/
https://reviews.llvm.org/D125368
Files:
llvm/lib/MC/MCWin64EH.cpp
Index: llvm/lib/MC/MCWin64EH.cpp
===================================================================
--- llvm/lib/MC/MCWin64EH.cpp
+++ 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125368.428912.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220512/75b0de98/attachment.bin>
More information about the llvm-commits
mailing list