mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
llvm::SwitchInst
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default. Added some notes relative to case iterators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -813,7 +813,7 @@ void Verifier::visitSwitchInst(SwitchInst &SI) {
|
||||
// have the same type as the switched-on value.
|
||||
Type *SwitchTy = SI.getCondition()->getType();
|
||||
SmallPtrSet<ConstantInt*, 32> Constants;
|
||||
for (SwitchInst::CaseIt i = SI.caseBegin(), e = SI.caseEnd(); i != e; ++i) {
|
||||
for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); i != e; ++i) {
|
||||
Assert1(i.getCaseValue()->getType() == SwitchTy,
|
||||
"Switch constants must all be same type as switch value!", &SI);
|
||||
Assert2(Constants.insert(i.getCaseValue()),
|
||||
|
||||
Reference in New Issue
Block a user