[PATCH] D100954: [lld][MachO] Refactor findCommand
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 07:24:28 PDT 2021
int3 added inline comments.
================
Comment at: lld/MachO/InputFiles.h:200-201
auto *cmd = reinterpret_cast<const CommandType *>(p);
- if (cmd->cmd == type)
+ if (std::find(typesList.begin(), typesList.end(), cmd->cmd) !=
+ typesList.end())
return cmd;
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100954/new/
https://reviews.llvm.org/D100954
More information about the llvm-commits
mailing list