Mercurial > projects > ldc
diff gen/runtime.c @ 40:8b0e809563df trunk
[svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 07:43:21 +0200 |
parents | 3cfcb944304e |
children | 0c77619e803b |
line wrap: on
line diff
--- a/gen/runtime.c Wed Oct 10 06:21:31 2007 +0200 +++ b/gen/runtime.c Fri Oct 19 07:43:21 2007 +0200 @@ -70,9 +70,13 @@ } llvm::Function* fn = M->getFunction(name); - if (!fn) - return NULL; + if (!fn) { + error("Runtime function '%s' was not found", name); + fatal(); + //return NULL; + } const llvm::FunctionType* fnty = fn->getFunctionType(); return llvm::cast<llvm::Function>(target->getOrInsertFunction(name, fnty)); } +