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().
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Rebase on top of 8b3e1adf2b4a69b6055dc4e07b4e97817208c904, which removed the duplication of findCaseValue().