Remove ldc.arrayinit & streamline _d_array_slice_copy/_d_arraycast_len with upstream

This commit is contained in:
Martin Kinkelin 2019-01-07 14:42:19 +01:00
parent b223888c19
commit 33cadfaca6
10 changed files with 106 additions and 94 deletions

View file

@ -293,7 +293,7 @@ void DtoAssert(Module *M, Loc &loc, DValue *msg) {
args.push_back(DtoConstUint(loc.linnum));
// call
gIR->funcGen().callOrInvoke(fn, args);
gIR->CreateCallOrInvoke(fn, args);
// after assert is always unreachable
gIR->ir->CreateUnreachable();
@ -333,7 +333,7 @@ void DtoCAssert(Module *M, Loc &loc, LLValue *msg) {
args.push_back(line);
}
gIR->funcGen().callOrInvoke(fn, args);
gIR->CreateCallOrInvoke(fn, args);
gIR->ir->CreateUnreachable();
}