diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-07 21:45:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-07 21:45:41 +0000 |
commit | 4f98e628317d0266501f1a86707c69b8a01ebfb6 (patch) | |
tree | 09b73c1c04856d967c0322757ee9256afaaab9b0 /llvm | |
parent | 968a5290f3dc7d9ec0501e5c4ba1d54a999afb28 (diff) | |
download | bcm5719-llvm-4f98e628317d0266501f1a86707c69b8a01ebfb6.tar.gz bcm5719-llvm-4f98e628317d0266501f1a86707c69b8a01ebfb6.zip |
Types should be const.
llvm-svn: 33001
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index 2c5821ae37f..483c5702c78 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/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; |