aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-07 21:45:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-07 21:45:41 +0000
commit3c628627eab803f5b130e5ee870ce5936a5f1ba7 (patch)
tree59ee84255e3fe7c3017befbbad96df9b61232381 /lib
parent161a4c9d79bdf87482c5d4bbfd1240d2a8779e5a (diff)
Types should be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/SimplifyLibCalls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index 2c5821ae37..483c5702c7 100644
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -1091,7 +1091,7 @@ struct LLVMMemCpyMoveOptzn : public LibCallOptimization {
// Get the type we will cast to, based on size of the string
Value* dest = ci->getOperand(1);
Value* src = ci->getOperand(2);
- Type* castType = 0;
+ const Type* castType = 0;
switch (len)
{
case 0:
@@ -1195,7 +1195,7 @@ struct LLVMMemSetOptimization : public LibCallOptimization {
// Get the type we will cast to, based on size of memory area to fill, and
// and the value we will store there.
Value* dest = ci->getOperand(1);
- Type* castType = 0;
+ const Type* castType = 0;
switch (len) {
case 1:
castType = Type::Int8Ty;