mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Types should be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
161a4c9d79
commit
3c628627ea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user