Fix the build

llvm-svn: 4884
This commit is contained in:
Chris Lattner 2002-12-03 18:15:59 +00:00
parent b676857358
commit 6a0874071b
1 changed files with 2 additions and 2 deletions

View File

@ -641,10 +641,10 @@ ISel::visitCastInst (CastInst &CI)
//the former is that the register allocator could use any register it wants,
//but for now this obviously doesn't matter. :)
Type *targetType = CI.getType ();
const Type *targetType = CI.getType ();
Value *operand = CI.getOperand (0);
unsigned int operandReg = getReg (operand);
Type *sourceType = operand->getType ();
const Type *sourceType = operand->getType ();
unsigned int destReg = getReg (CI);
// cast to bool: