1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-svn: 30504
This commit is contained in:
Evan Cheng 2006-09-20 01:10:02 +00:00
parent c5be7540d2
commit 8652c13f13

View File

@ -1608,7 +1608,8 @@ FoundSExt:
const Type *SIntPtrTy = UIntPtrTy->getSignedVersion();
if((CI->getType() == UIntPtrTy || CI->getType() == SIntPtrTy)
&& isa<PointerType>(CI->getOperand(0)->getType())) {
Instruction* I2 = new CastInst(CI->getOperand(0), PointerType::get(Type::SByteTy), "ctg", &I);
Instruction* I2 = new CastInst(CI->getOperand(0),
PointerType::get(Type::SByteTy), "ctg", &I);
WorkList.push_back(I2);
I2 = new GetElementPtrInst(I2, Other, "ctg", &I);
WorkList.push_back(I2);