summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index c5241ce1356..2e7b0cfc0af 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -2234,7 +2234,6 @@ SROA::RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *Inst,
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);
OpenPOWER on IntegriCloud