mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Remove ldc.arrayinit & streamline _d_array_slice_copy/_d_arraycast_len with upstream
This commit is contained in:
parent
b223888c19
commit
33cadfaca6
10 changed files with 106 additions and 94 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue