Mercurial > projects > ldc
diff gen/toobj.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 | 17d4d554300a |
children | fa20726fe074 |
line wrap: on
line diff
--- a/gen/toobj.cpp Mon Apr 27 03:40:40 2009 +0200 +++ b/gen/toobj.cpp Mon Apr 27 13:30:48 2009 +0200 @@ -99,12 +99,6 @@ sir->setState(&ir); - // module ir state - // might already exist via import, just overwrite since - // the global created for the filename must belong to the right llvm module - // FIXME: but shouldn't this always get reset between modules? like other IrSymbols - this->ir.irModule = new IrModule(this, srcfile->toChars()); - // set target triple ir.module->setTargetTriple(global.params.targetTriple);