mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
Merge branch 'clang_3_5_crash' of https://github.com/edward-san/zdoom
This commit is contained in:
commit
0787f73cd4
1 changed files with 6 additions and 0 deletions
|
@ -2306,6 +2306,12 @@ void FBehavior::LoadScriptsDirectory ()
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// [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.
|
||||||
|
#if defined(__clang__) && __clang_major__ == 3 && __clang_minor__ >= 5
|
||||||
|
asm("" : "+g" (NumScripts));
|
||||||
|
#endif
|
||||||
for (i = 0; i < NumScripts; ++i)
|
for (i = 0; i < NumScripts; ++i)
|
||||||
{
|
{
|
||||||
Scripts[i].Flags = 0;
|
Scripts[i].Flags = 0;
|
||||||
|
|
Loading…
Reference in a new issue