From 1bf467cd776bbbcb79ca11da2a2d94cf58753ba5 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 11 Aug 2008 19:29:51 +0200 Subject: LLVM compiler: Support empty PROGN forms. --- MLKLLVMCompiler.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MLKLLVMCompiler.mm') diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index 7490b32..249ac39 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -130,6 +130,9 @@ static FunctionPassManager *fpm; MLKForm *form; Value *value; + if ([_bodyForms count] == 0) + value = ConstantPointerNull::get (PointerType::get(Type::VoidTy, 0)); + while ((form = [e nextObject])) { value = [form processForLLVM]; -- cgit v1.2.3