mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Support ptr -> AA casts
This commit is contained in:
parent
fa07848d26
commit
04e9910ad2
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ DValue *DtoCastPtr(Loc &loc, DValue *val, Type *to) {
|
|||
|
||||
LLValue *rval;
|
||||
|
||||
if (totype->ty == Tpointer || totype->ty == Tclass) {
|
||||
if (totype->ty == Tpointer || totype->ty == Tclass || totype->ty == Taarray) {
|
||||
LLValue *src = DtoRVal(val);
|
||||
IF_LOG {
|
||||
Logger::cout() << "src: " << *src << '\n';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue