#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}
I get the following warning:
src/CMakeFiles/llvm_cbe_poc.dir/main.c:802:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
uint32_t main(void) __ATTRIBUTELIST__((noinline));
^
LLVM doesn't preserve sign (since the ABI doesn't either), so everything is emitted as unsigned. It does cause these annoying warnings, but I think should be the same build.
With even the simplest code:
I get the following warning:
but the LLVM file clearly states:
How is the
i32
converted touint32_t
?