summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-18 21:46:28 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-18 21:46:28 +0000
commitf3f8f443e10cbba0c313c41b3dc3632e39804c96 (patch)
tree503e0662ca333268852e97aa56331b51a603a946 /llvm/lib
parent5c6e653b72f601977054bdf8f0c4512a972e60cb (diff)
downloadbcm5719-llvm-f3f8f443e10cbba0c313c41b3dc3632e39804c96.tar.gz
bcm5719-llvm-f3f8f443e10cbba0c313c41b3dc3632e39804c96.zip
[fast-isel] Remove an invalid assert.
If the memcpy has an odd length with an alignment of 2, this would incorrectly assert on the last 1 byte copy. rdar://13202135 llvm-svn: 175459
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 022fe970266..b545dbc3ea1 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -2458,7 +2458,6 @@ bool ARMFastISel::ARMTryEmitSmallMemCpy(Address Dest, Address Src,
if (Len >= 2 && Alignment == 2)
VT = MVT::i16;
else {
- assert (Alignment == 1 && "Expected an alignment of 1!");
VT = MVT::i8;
}
}
OpenPOWER on IntegriCloud