[llvm] r258029 - Revert assert added in rL258028 as the alloca and OtherPtr types may differ in address space.
Eduard Burtescu via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 17 16:20:35 PST 2016
Author: eddyb
Date: Sun Jan 17 18:20:34 2016
New Revision: 258029
URL: http://llvm.org/viewvc/llvm-project?rev=258029&view=rev
Log:
Revert assert added in rL258028 as the alloca and OtherPtr types may differ in address space.
Modified:
llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=258029&r1=258028&r2=258029&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Sun Jan 17 18:20:34 2016
@@ -2234,7 +2234,6 @@ SROA::RewriteMemIntrinUserOfAlloca(MemIn
OtherPtr->getName()+"."+Twine(i),
MI);
uint64_t EltOffset;
- assert(AI->getType() == OtherPtr->getType());
Type *OtherTy = AI->getAllocatedType();
if (StructType *ST = dyn_cast<StructType>(OtherTy)) {
EltOffset = DL.getStructLayout(ST)->getElementOffset(i);
More information about the llvm-commits
mailing list