aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFastISel.cpp
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
commit848c25ddfa8530fd9349bdf5ed8a8633f27eb388 (patch)
tree2f8712d7e973b7e6880fc3a087226d966644d795 /lib/Target/ARM/ARMFastISel.cpp
parent6228999d826c87ac90344356c2d123361dc1d648 (diff)
downloadexternal_llvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.zip
external_llvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.tar.gz
external_llvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.tar.bz2
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 022fe97..b545dbc 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/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;
}
}