[PATCH] D137164: [LLParser] Handle mixed blockaddress forward references with names and IDs
Duncan P. N. Exon Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 13:03:03 PST 2022
dexonsmith added a comment.
Would it be simpler to define `<` for that case? Or, we could define a custom one to send to the `std::map`:
struct CompareValID {
static bool operator<(const ValID &LHS, const ValID &RHS) {
if (LHS.Kind != RHS.Kind)
return LHS.Kind < RHS.Kind;
return LHS < RHS;
}
};
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137164/new/
https://reviews.llvm.org/D137164
More information about the llvm-commits
mailing list