summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SROA.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2016-08-22 18:49:42 +0000
committerJames Molloy <james.molloy@arm.com>2016-08-22 18:49:42 +0000
commit0fee97f8baf4c1942666df7adbfd07b6f8e8c904 (patch)
tree22f5fa8377f0b9b08ca01340eef5f7ee02ff86e0 /llvm/lib/Transforms/Scalar/SROA.cpp
parent3820ac31061f59806a2c1cffbbe6e2ef6031ff6f (diff)
downloadbcm5719-llvm-0fee97f8baf4c1942666df7adbfd07b6f8e8c904.tar.gz
bcm5719-llvm-0fee97f8baf4c1942666df7adbfd07b6f8e8c904.zip
[SROA] Remove incorrect assertion
Confirmed with aprantl, this assertion is incorrect - code can get here (for example 80-bit FP types) and if it does it's benign. This is exposed by a completely unrelated patch of mine, so stop the compiler falling over. Original differential: http://reviews.llvm.org/D16187 aprantl's advice to remove assertion: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160815/382129.html llvm-svn: 279454
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SROA.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SROA.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp
index 874f4e77f95..123c1767f3e 100644
--- a/llvm/lib/Transforms/Scalar/SROA.cpp
+++ b/llvm/lib/Transforms/Scalar/SROA.cpp
@@ -4037,9 +4037,6 @@ bool SROA::splitAlloca(AllocaInst &AI, AllocaSlices &AS) {
Size = std::min(Size, AbsEnd - Start);
}
PieceExpr = DIB.createBitPieceExpression(Start, Size);
- } else {
- assert(Pieces.size() == 1 &&
- "partition is as large as original alloca");
}
// Remove any existing dbg.declare intrinsic describing the same alloca.
OpenPOWER on IntegriCloud