Turn off optimization for checkForAlphaPixels on Windows ARM

This function is optimized in a way that it returns bad results with the
arm msvc compiler.

Task-number: QTBUG-52007
Change-Id: Ica4517dfb7dde5a78d563f9253c4c907090c9459
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Maurice Kalinowski 2016-05-23 09:55:13 +02:00
parent c18b802e33
commit 11f14a0442

View File

@ -170,6 +170,9 @@ QImageData::~QImageData()
data = 0;
}
#if defined(_M_ARM)
#pragma optimize("", off)
#endif
bool QImageData::checkForAlphaPixels() const
{
@ -277,6 +280,9 @@ bool QImageData::checkForAlphaPixels() const
return has_alpha_pixels;
}
#if defined(_M_ARM)
#pragma optimize("", on)
#endif
/*!
\class QImage