diff gen/aa.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 d584cda84b00
children 15e9762bb620
line wrap: on
line diff
--- a/gen/aa.cpp	Mon Apr 27 03:40:40 2009 +0200
+++ b/gen/aa.cpp	Mon Apr 27 13:30:48 2009 +0200
@@ -111,7 +111,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);