[LLVMdev] Error: "Recursive compilation" when run lli

侯硕 hoskylucky at 163.com
Thu Aug 23 00:14:34 PDT 2012


I edit two files named test.h,test.cpp as follow:
///////////////test.h////////////////////////////////////////////////////////////////class TestClass
{
private:
	int fTotal;
public:
	TestClass();
	~TestClass();
};///////////test.cpp/////////////////////////////////////////////////////////////////////////////#include "test.h"

TestClass::TestClass()
{
fTotal = 2;
}

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

int main()
{
  TestClass short_name; 
  return 0;
}


and I run: clang++ -c test.cpp -emit-llvm -o test.bc
and lli test.bc, 
I get follow error:
assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
How can I fix it? Thank you.
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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120823/7dcaa286/attachment.html>


More information about the llvm-dev mailing list