mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Fix for issue #461
This commit is contained in:
parent
a9a9930e33
commit
3c800d2380
1 changed files with 1 additions and 1 deletions
|
@ -898,7 +898,7 @@ LLValue* DtoArrayPtr(DValue* v)
|
|||
if (DSliceValue* s = v->isSlice())
|
||||
return s->ptr;
|
||||
else if (v->isNull())
|
||||
return getNullPtr(getPtrToType(DtoType(t->nextOf())));
|
||||
return getNullPtr(getPtrToType(i1ToI8(DtoType(t->nextOf()))));
|
||||
else if (v->isLVal())
|
||||
return DtoLoad(DtoGEPi(v->getLVal(), 0,1), ".ptr");
|
||||
return gIR->ir->CreateExtractValue(v->getRVal(), 1, ".ptr");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue