Displaying 1 result from an estimated 1 matches for "c105c082".
Did you mean:
1055082
2013 Apr 11
1
[LLVMdev] Can't create "main" function?
Hi,
On 10/04/13 20:23, edA-qa mort-ora-y wrote:
> Got it. I had a global_variable also with the name "main". Perhaps
> getOrInsertFuntion needs an assert to check this (it was returning a
> variable I guess rather than a function, and thus static_cast was broken).
if you use LLVM's cast rather than static_cast then you will get an
assertion failure if the cast is wrong.