Bug 581341 - Part 6: Hack around an MSVC PGO bug. r=ted

This commit is contained in:
Josh Matthews 2011-09-30 13:02:52 -04:00
parent 2ac9ef8dc8
commit 3b3a2791d1

View File

@ -1105,6 +1105,10 @@ static PLDHashOperator EnumerateEntries(const nsACString& key,
return PL_DHASH_NEXT;
}
// This function is miscompiled with MSVC 2005/2008 when PGO is on.
#ifdef _MSC_VER
#pragma optimize("", off)
#endif
static nsresult
EscapeAnnotation(const nsACString& key, const nsACString& data, nsCString& escapedData)
{
@ -1125,6 +1129,9 @@ EscapeAnnotation(const nsACString& key, const nsACString& data, nsCString& escap
NS_LITERAL_CSTRING("\\n"));
return NS_OK;
}
#ifdef _MSC_VER
#pragma optimize("", on)
#endif
class DelayedNote
{