fix a warning

llvm-svn: 34272
This commit is contained in:
Chris Lattner 2007-02-14 07:34:56 +00:00
parent cba64669b0
commit ab1812f806
1 changed files with 1 additions and 1 deletions

View File

@ -1253,7 +1253,7 @@ void SelectionDAGLowering::visitSwitch(SwitchInst &I) {
// a case statement, push the case's BB onto the vector, otherwise, push
// the default BB.
std::vector<MachineBasicBlock*> DestBBs;
uint64_t TEI = First;
int64_t TEI = First;
for (CaseItr ii = Cases.begin(), ee = Cases.end(); ii != ee; ++TEI)
if (cast<ConstantInt>(ii->first)->getSExtValue() == TEI) {
DestBBs.push_back(ii->second);