mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
PR1255: case ranges.
IntRange converted from struct to class. So main change everywhere is replacement of ".Low/High" with ".getLow/getHigh()" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -173,7 +173,7 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB, bool DeleteDeadConditions) {
|
||||
if (CaseRanges.getNumItems() == 1 && CaseRanges.isSingleNumber(0)) {
|
||||
// FIXME: Currently work with ConstantInt based numbers.
|
||||
Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
|
||||
CaseRanges.getItem(0).Low.toConstantInt(),
|
||||
CaseRanges.getItem(0).getLow().toConstantInt(),
|
||||
"cond");
|
||||
|
||||
// Insert the new branch.
|
||||
|
Reference in New Issue
Block a user