diff gen/statements.cpp @ 1271:0686701178d3

Moved special casing of 'assert(this, "null this");' generated statements from !ThisExp into !AssertExp. Fixed filenames for array bounds errors and probably others, fixes #271 .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Mon, 27 Apr 2009 13:30:48 +0200
parents 8baf611f0009
children 15e9762bb620
line wrap: on
line diff
--- a/gen/statements.cpp	Mon Apr 27 03:40:40 2009 +0200
+++ b/gen/statements.cpp	Mon Apr 27 13:30:48 2009 +0200
@@ -1466,7 +1466,8 @@
     std::vector<LLValue*> args;
 
     // file param
-    args.push_back(DtoLoad(gIR->dmodule->ir.irModule->fileName));
+    IrModule* irmod = getIrModule(NULL);
+    args.push_back(DtoLoad(irmod->fileName));
 
     // line param
     LLConstant* c = DtoConstUint(loc.linnum);