Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1270:dd135ff697fa | 1271:0686701178d3 |
---|---|
109 gIR->scope() = IRScope(failbb, okbb); | 109 gIR->scope() = IRScope(failbb, okbb); |
110 | 110 |
111 std::vector<LLValue*> args; | 111 std::vector<LLValue*> args; |
112 | 112 |
113 // file param | 113 // file param |
114 args.push_back(DtoLoad(gIR->dmodule->ir.irModule->fileName)); | 114 IrModule* irmod = getIrModule(NULL); |
115 args.push_back(DtoLoad(irmod->fileName)); | |
115 | 116 |
116 // line param | 117 // line param |
117 LLConstant* c = DtoConstUint(loc.linnum); | 118 LLConstant* c = DtoConstUint(loc.linnum); |
118 args.push_back(c); | 119 args.push_back(c); |
119 | 120 |