diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-30 22:54:58 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-10-30 22:54:58 +0000 |
commit | 9effcbb879728f8a1e0e86c9cb777f11a9a3be7d (patch) | |
tree | 09f0b414f8c1ec529d3258e7a3d03247c21f5563 /lib/Transforms | |
parent | 415b33f161537be38be213cb7cb89314173f6549 (diff) | |
download | external_llvm-9effcbb879728f8a1e0e86c9cb777f11a9a3be7d.zip external_llvm-9effcbb879728f8a1e0e86c9cb777f11a9a3be7d.tar.gz external_llvm-9effcbb879728f8a1e0e86c9cb777f11a9a3be7d.tar.bz2 |
Teach scalarrepl about address spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 33bbe15..57b290e 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -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) { |