Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1270:dd135ff697fa | 1271:0686701178d3 |
---|---|
1464 llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_switch_error"); | 1464 llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_switch_error"); |
1465 | 1465 |
1466 std::vector<LLValue*> args; | 1466 std::vector<LLValue*> args; |
1467 | 1467 |
1468 // file param | 1468 // file param |
1469 args.push_back(DtoLoad(gIR->dmodule->ir.irModule->fileName)); | 1469 IrModule* irmod = getIrModule(NULL); |
1470 args.push_back(DtoLoad(irmod->fileName)); | |
1470 | 1471 |
1471 // line param | 1472 // line param |
1472 LLConstant* c = DtoConstUint(loc.linnum); | 1473 LLConstant* c = DtoConstUint(loc.linnum); |
1473 args.push_back(c); | 1474 args.push_back(c); |
1474 | 1475 |