Index: src/opts/SkBlitRow_opts_SSE4.cpp |
diff --git a/src/opts/SkBlitRow_opts_SSE4.cpp b/src/opts/SkBlitRow_opts_SSE4.cpp |
index fd837d54fee4d879fd3d1d25887c343d1c51279c..ae92a77eb2d234ba9bf5a7d816b860f469b022e9 100644 |
--- a/src/opts/SkBlitRow_opts_SSE4.cpp |
+++ b/src/opts/SkBlitRow_opts_SSE4.cpp |
@@ -55,6 +55,7 @@ void S32A_Opaque_BlitRow32_SSE4(SkPMColor* SK_RESTRICT dst, |
} |
// Wrap up the last <= 15 pixels. |
+ SkASSERT(count - (count16*16) <= 15); |
for (int i = count16*16; i < count; i++) { |
// This check is not really necessarily, but it prevents pointless autovectorization. |
if (src[i] & 0xFF000000) { |