<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><pre>I edit two files named test.h,test.cpp as follow:
</pre><pre>///////////////test.h////////////////////////////////////////////////////////////////</pre><pre>class TestClass
{
private:
        int fTotal;
public:
        TestClass();
        ~TestClass();
};</pre><pre>///////////test.cpp/////////////////////////////////////////////////////////////////////////////</pre><pre>#include "test.h"<br>
TestClass::TestClass()
{
fTotal = 2;
}

TestClass::~TestClass()
{
fTotal = 3;
}

int main()
{
  TestClass short_name; 
  return 0;
}</pre><pre><br></pre><pre>and I run: clang++ -c test.cpp -emit-llvm -o test.bc</pre><pre>and lli test.bc, </pre><pre>I get follow error:</pre><pre>assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");</pre><pre>How can I fix it? Thank you.</pre><pre>p.s I try on llvm 2.9/3.0/3.1 and they all get that error, by the way I compile llvm used VS2010 on win7.</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>