Types should be const.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 7 Jan 2007 21:45:41 +0000 (21:45 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 7 Jan 2007 21:45:41 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33001 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index 2c5821ae37f4d64caa4fd102eb95dcdd00b0e3ab..483c5702c788eeb1c41081a82f376ed91b15ca81 100644 (file)
@@ -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;