mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +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;
|
LLValue *rval;
|
||||||
|
|
||||||
if (totype->ty == Tpointer || totype->ty == Tclass) {
|
if (totype->ty == Tpointer || totype->ty == Tclass || totype->ty == Taarray) {
|
||||||
LLValue *src = DtoRVal(val);
|
LLValue *src = DtoRVal(val);
|
||||||
IF_LOG {
|
IF_LOG {
|
||||||
Logger::cout() << "src: " << *src << '\n';
|
Logger::cout() << "src: " << *src << '\n';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue