Mercurial > projects > ldc
diff ir/irstruct.cpp @ 1529:ad7f2f1862d6
Adjust LDC to work with the LLVMContext LLVM changes.
This means we now require a fairly new LLVM revision. I use 75234.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 10 Jul 2009 21:30:02 +0200 |
parents | 81121ac19f61 |
children | 8ca25bd765a3 |
line wrap: on
line diff
--- a/ir/irstruct.cpp Thu Jul 09 21:13:19 2009 +0100 +++ b/ir/irstruct.cpp Fri Jul 10 21:30:02 2009 +0200 @@ -58,7 +58,7 @@ llvm::GlobalValue::LinkageTypes _linkage = DtoExternalLinkage(aggrdecl); init = new llvm::GlobalVariable( - init_pa.get(), true, _linkage, NULL, initname, gIR->module); + *gIR->module, init_pa.get(), true, _linkage, NULL, initname); // set alignment init->setAlignment(type->alignsize());