aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp4
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index ac4084cbbb..10fdf0f911 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/lib/Target/X86/InstSelectSimple.cpp
@@ -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:
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index ac4084cbbb..10fdf0f911 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -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: