mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Teach scalarrepl about address spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -963,7 +963,7 @@ ConvertScalar_InsertValue(Value *SV, Value *Old,
|
||||
if (SV->getType()->isFloatingPointTy() || SV->getType()->isVectorTy())
|
||||
SV = Builder.CreateBitCast(SV, IntegerType::get(SV->getContext(),SrcWidth));
|
||||
else if (SV->getType()->isPointerTy())
|
||||
SV = Builder.CreatePtrToInt(SV, TD.getIntPtrType(SV->getContext()));
|
||||
SV = Builder.CreatePtrToInt(SV, TD.getIntPtrType(SV->getType()));
|
||||
|
||||
// Zero extend or truncate the value if needed.
|
||||
if (SV->getType() != AllocaType) {
|
||||
|
Reference in New Issue
Block a user