From 6007e0dd0227186871e7496fb7c65b767ded70a3 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Mon, 18 Jan 2016 00:20:34 +0000 Subject: Revert assert added in rL258028 as the alloca and OtherPtr types may differ in address space. llvm-svn: 258029 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp') 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(OtherTy)) { EltOffset = DL.getStructLayout(ST)->getElementOffset(i); -- cgit v1.2.3