Fix the build


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4884 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index ac4084c..10fdf0f 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -641,10 +641,10 @@
 //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: