mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Fix for issue #461
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user