aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrey.golubev@intel.com>2024-09-10 20:29:57 +0300
committerGitHub <noreply@github.com>2024-09-10 10:29:57 -0700
commit7fb19cb24ca154dfffa300eaac1f037b74a9539e (patch)
treeeb86d35aaca7177a2eab1393f2e4210847c96f6b /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent524a028f69cdf25503912c396ebda7ebf0065ed2 (diff)
downloadllvm-7fb19cb24ca154dfffa300eaac1f037b74a9539e.zip
llvm-7fb19cb24ca154dfffa300eaac1f037b74a9539e.tar.gz
llvm-7fb19cb24ca154dfffa300eaac1f037b74a9539e.tar.bz2
[ADT] Require base equality in indexed_accessor_iterator::operator==() (#107856)
Similarly to operator<(), equality-comparing iterators from different ranges must really be forbidden. The preconditions for being able to do `it1 < it2` and `it1 != it2` (or `it1 == it2` for the matter) ought to be the same. Thus, there's little sense in keeping explicit base object comparison in operator==() whilst having this is a precondition in operator<() and operator-() (e.g. used for std::distance() and such).
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions