diff options
author | dim <dim@FreeBSD.org> | 2017-02-03 19:15:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2017-02-03 19:15:53 +0000 |
commit | 31ca27e6c7efc70a48d3fb6af7d5bcfa7c4afc7b (patch) | |
tree | 5572987b87a1f8fc55ae7497dabe3a2aa6168efa | |
parent | 0c2cdf37416d6bc499c24e9034b3808ea0aeeadb (diff) | |
download | FreeBSD-src-31ca27e6c7efc70a48d3fb6af7d5bcfa7c4afc7b.zip FreeBSD-src-31ca27e6c7efc70a48d3fb6af7d5bcfa7c4afc7b.tar.gz |
MFC r312993:
Pull in r279454 from upstream llvm trunk (by James Molloy):
[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
This should fix assertions when building the math/opensolaris-libm port.
Reported by: marino
-rw-r--r-- | contrib/llvm/lib/Transforms/Scalar/SROA.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/contrib/llvm/lib/Transforms/Scalar/SROA.cpp b/contrib/llvm/lib/Transforms/Scalar/SROA.cpp index 7d33259..4ce552f 100644 --- a/contrib/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/contrib/llvm/lib/Transforms/Scalar/SROA.cpp @@ -4040,9 +4040,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. |