mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +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:
@@ -1488,12 +1488,12 @@ bool SCCPSolver::ResolvedUndefsIn(Function &F) {
|
||||
// If the input to SCCP is actually switch on undef, fix the undef to
|
||||
// the first constant.
|
||||
if (isa<UndefValue>(SI->getCondition())) {
|
||||
SI->setCondition(SI->caseBegin().getCaseValue());
|
||||
markEdgeExecutable(BB, SI->caseBegin().getCaseSuccessor());
|
||||
SI->setCondition(SI->case_begin().getCaseValue());
|
||||
markEdgeExecutable(BB, SI->case_begin().getCaseSuccessor());
|
||||
return true;
|
||||
}
|
||||
|
||||
markForcedConstant(SI->getCondition(), SI->caseBegin().getCaseValue());
|
||||
markForcedConstant(SI->getCondition(), SI->case_begin().getCaseValue());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user