Displaying 2 results from an estimated 2 matches for "8261b7d9".
2013 Apr 10
0
[LLVMdev] Can't create "main" function?
...pt: I'm also happy to receive encrypted mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130410/8261b7d9/attachment.sig>
2013 Apr 10
2
[LLVMdev] Can't create "main" function?
I'm getting a strange behaviour when I attempt to create my main function:
auto func = static_cast<llvm::Function*>(module->getOrInsertFunction(
"main",
types->type_void(), (llvm::Type*)0 ) );
ASSERT( func );
auto block = llvm::BasicBlock::Create( *context, "entry", func );
The "BasicBlock::Create" function is causing a segfault. This only
happens