const ConstantInt* CI1 = cast<const ConstantInt>(C1.first);
const ConstantInt* CI2 = cast<const ConstantInt>(C2.first);
- return CI1->getZExtValue() < CI2->getZExtValue();
+ return CI1->getValue().ult(CI2->getValue());
}
};
Case& Pivot = *(Begin + Mid);
DOUT << "Pivot ==> "
- << cast<ConstantInt>(Pivot.first)->getSExtValue() << "\n";
+ << cast<ConstantInt>(Pivot.first)->getValue().toStringSigned(10) << "\n";
BasicBlock* LBranch = switchConvert(LHS.begin(), LHS.end(), Val,
OrigBlock, Default);