[LLVMdev] clang: call extern function using JIT
Óscar Fuentes
ofv at wanadoo.es
Wed Aug 18 06:11:39 PDT 2010
gafferuk <gafferuk at gmail.com> writes:
> Im confused. The function i wish to call is a return type of int.
> Im calling it with int dd = yipee(1);
>
> What's wrong?
Declare the function:
int yipee(int);
int main()
{
int dd = yipee(1);
return 0;
}
If that still crashes, put a breakpoint on `yipee' and see if the
execution gets there, if the argument is right, if the crash happens
inside the function or after it returns...
More information about the llvm-dev
mailing list