<div dir="ltr"><div>Hello Everyone</div><div> </div><div>I am finding that I can compile but can't run even the smallest of programs built using clang svn on mingw64 using windows 7 64. The problem has been there for over a week. No functions work, nothing that puts anything onto the stack, which is everything, will work.</div>
<div> </div><div>Attached is the llvm .s file for this program below that doesn't work for me.</div><div>Can somebody take a look and find out what's wrong. If anybody could fix this it would be great as it's holding me up.</div>
<div> </div><div>If you compile with with asserts enabled the assert should fire if your machine is exhibiting the problem.</div><div> </div><div>On Windows you can use echo %ERRORLEVEL% to see the result too at the command prompt.</div>
<div> </div><div>By the way since I'm posting here, the cmake file for llvm seems to be broken. But I'll post more on that mailing list.</div><div> </div><div>Thanks</div><div> </div><div>#include <cassert></div>
<div>inline int f( int x )<br>{<br> assert( x == 42 );<br>    return x == 42 ? 0 : -1;<br>}</div><div>int main()<br>{<br>    const int x = 42;<br>    return f(x);<br>}<br></div></div>