- Clang 3.5.1+ fixed the compiler bug in ACS code.

Referring to commit 1c96039d7a .
This commit is contained in:
Edoardo Prezioso 2015-04-28 19:25:06 +02:00
parent a93c30238b
commit 92fe265abe
1 changed files with 2 additions and 2 deletions

View File

@ -2302,8 +2302,8 @@ void FBehavior::LoadScriptsDirectory ()
} }
// [EP] Clang 3.5.0 optimizer miscompiles this function and causes random // [EP] Clang 3.5.0 optimizer miscompiles this function and causes random
// crashes in the program. I hope that Clang 3.5.x will fix this. // crashes in the program. This is fixed in 3.5.1 onwards.
#if defined(__clang__) && __clang_major__ == 3 && __clang_minor__ >= 5 #if defined(__clang__) && __clang_major__ == 3 && __clang_minor__ == 5 && __clang_patchlevel__ == 0
asm("" : "+g" (NumScripts)); asm("" : "+g" (NumScripts));
#endif #endif
for (i = 0; i < NumScripts; ++i) for (i = 0; i < NumScripts; ++i)