mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-10 06:24:58 +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
|
// Get the type we will cast to, based on size of the string
|
||||||
Value* dest = ci->getOperand(1);
|
Value* dest = ci->getOperand(1);
|
||||||
Value* src = ci->getOperand(2);
|
Value* src = ci->getOperand(2);
|
||||||
Type* castType = 0;
|
const Type* castType = 0;
|
||||||
switch (len)
|
switch (len)
|
||||||
{
|
{
|
||||||
case 0:
|
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
|
// Get the type we will cast to, based on size of memory area to fill, and
|
||||||
// and the value we will store there.
|
// and the value we will store there.
|
||||||
Value* dest = ci->getOperand(1);
|
Value* dest = ci->getOperand(1);
|
||||||
Type* castType = 0;
|
const Type* castType = 0;
|
||||||
switch (len) {
|
switch (len) {
|
||||||
case 1:
|
case 1:
|
||||||
castType = Type::Int8Ty;
|
castType = Type::Int8Ty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user