mirror of
https://github.com/dlang/dmd.git
synced 2025-05-06 19:16:03 +03:00
Cache TypeIdExp::semantic
This commit is contained in:
parent
d8c0e79bfb
commit
bfae7828a9
2 changed files with 6 additions and 3 deletions
|
@ -7130,6 +7130,11 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
|
|||
{
|
||||
printf("TypeidExp::semantic() %s\n", exp.toChars());
|
||||
}
|
||||
if (exp.type)
|
||||
{
|
||||
result = exp;
|
||||
return;
|
||||
}
|
||||
Type ta = isType(exp.obj);
|
||||
Expression ea = isExpression(exp.obj);
|
||||
Dsymbol sa = isDsymbol(exp.obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue