зеркало из https://github.com/mozilla/gecko-dev.git
Bug 543034: Attempt to workaround msvc bug "fatal error C1001: An internal error has occurred in the compiler" by disabling optimizations for the tagged block of code. r=gavin
This commit is contained in:
Родитель
1035788e91
Коммит
f6c224ac50
|
@ -378,6 +378,12 @@ nsAnnotationService::SetPageAnnotation(nsIURI* aURI,
|
|||
}
|
||||
|
||||
|
||||
|
||||
// XXX for some reason, this next block of code seems to kill MSVC (bug 543034)
|
||||
#ifdef _MSC_VER
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAnnotationService::SetItemAnnotation(PRInt64 aItemId,
|
||||
const nsACString& aName,
|
||||
|
@ -456,6 +462,10 @@ nsAnnotationService::SetItemAnnotation(PRInt64 aItemId,
|
|||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
// End workaround for bug 543034
|
||||
#ifdef _MSC_VER
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsAnnotationService::SetPageAnnotationString(nsIURI* aURI,
|
||||
|
|
Загрузка…
Ссылка в новой задаче