LLVM IR Null pointer constants and function pointers. A wild goose chase after a bad assumption.
LLVM IR Null pointer constants and function pointers. A wild goose chase after a bad assumption.
With ELLCC, you can easily check out the LLVM IR for code like:
typedef void ( *f )( void ); void foo( void ); f bar() { return (f)foo; }
is
[1]: http://ellcc.org/demo/index.cgi
define nonnull void ()* @bar() local_unnamed_addr { ret void ()* @foo } declare void @foo()
I was trying to use @foo in a “struct” object, and was getting an error attempting this:
llvm/lib/IR/Con…
View On WordPress













