Fix the build
authorChris Lattner <sabre@nondot.org>
Tue, 3 Dec 2002 18:15:59 +0000 (18:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Dec 2002 18:15:59 +0000 (18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4884 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index ac4084cbbb55dea9a1a7ad94b07e724b76d5172e..10fdf0f911da386b387dde19d424278d37784615 100644 (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:
index ac4084cbbb55dea9a1a7ad94b07e724b76d5172e..10fdf0f911da386b387dde19d424278d37784615 100644 (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: