diff --git a/src/backends/llvm.c b/src/backends/llvm.c index c4aafb3a243f5ec4b327d7bba8e3ea61acbc55d6..e42622abf330b21dad077c16e4635154c17d9ead 100644 --- a/src/backends/llvm.c +++ b/src/backends/llvm.c @@ -49,9 +49,7 @@ int h_llvm_compile(HAllocator* mm__, HParser* parser, const void* params) { LLVMTypeRef ret_type = LLVMFunctionType(LLVMPointerType(LLVMStructCreateNamed(LLVMGetGlobalContext(), "%struct.HParseResult_"), 0), param_types, 2, 0); LLVMValueRef parse_func = LLVMAddFunction(mod, name, ret_type); // Parse function is now declared; time to define it - LLVMBasicBlockRef entry = LLVMAppendBasicBlock(parse_func, "entry"); LLVMBuilderRef builder = LLVMCreateBuilder(); - LLVMPositionBuilderAtEnd(builder, entry); // Translate the contents of the children of `parser` into their LLVM instruction equivalents if (parser->vtable->llvm(builder, mod, parser->env)) { // But first, verification