mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
LLVM 3.7: Fix GEP instructions in coverage code.
This commit is contained in:
parent
fc59f0392f
commit
2f3b31909b
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ void emitCoverageLinecountInc(Loc &loc) {
|
|||
LLConstant* idxs[] = { DtoConstUint(0), DtoConstUint(line) };
|
||||
LLValue* ptr = llvm::ConstantExpr::getGetElementPtr(
|
||||
#if LDC_LLVM_VER >= 307
|
||||
LLType::getInt32Ty(gIR->context()),
|
||||
LLArrayType::get(LLType::getInt32Ty(gIR->context()), gIR->dmodule->numlines),
|
||||
#endif
|
||||
gIR->dmodule->d_cover_data, idxs, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue