diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-11-11 18:07:14 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-11-12 14:07:04 -0800 |
commit | a678c6743f536dac67b3714fd8c71dca7b1ae082 (patch) | |
tree | 34a8f355760ca1d9fc02656ba86d94954833626c /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | c3edab8f781d0c3cf063ec0c675ad7bd7c3b65b8 (diff) | |
download | llvm-a678c6743f536dac67b3714fd8c71dca7b1ae082.zip llvm-a678c6743f536dac67b3714fd8c71dca7b1ae082.tar.gz llvm-a678c6743f536dac67b3714fd8c71dca7b1ae082.tar.bz2 |
IR: Fix const-correctness of SwitchInst::CaseIterator and CaseHandle
Fix some confusion between the two types of `const` a pointer/iterator
can have. Users of a SwitchInst::CaseIterator should not (and do not!)
manually mutate the SwitchInst::CaseHandle that tracks its internal
state. Change operator*() to return `const CaseHandle&`, remove the
non-const-qualified operator*(), and const-qualify
CaseHandle::setValue() and CaseHandle::setSuccessor().
Differential Revision: https://reviews.llvm.org/D113788
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions