forked from qt-creator/qt-creator
Oops, NamedTypeAST should produce a Type and not an ExprResult.
This commit is contained in:
@@ -575,8 +575,7 @@ bool Semantic::visit(NamedTypeAST *ast)
|
|||||||
if (ast->name) {
|
if (ast->name) {
|
||||||
if (Symbol *s = _scope->lookup(*ast->name)) {
|
if (Symbol *s = _scope->lookup(*ast->name)) {
|
||||||
if (Struct *ty = s->asStruct()) {
|
if (Struct *ty = s->asStruct()) {
|
||||||
_expr.type = ty;
|
_type = ty;
|
||||||
_expr.isConstant = false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -613,7 +612,7 @@ bool Semantic::visit(StructTypeAST *ast)
|
|||||||
|
|
||||||
bool Semantic::visit(QualifiedTypeAST *ast)
|
bool Semantic::visit(QualifiedTypeAST *ast)
|
||||||
{
|
{
|
||||||
accept(ast->type);
|
_type = type(ast->type);
|
||||||
for (List<LayoutQualifier *> *it = ast->layout_list; it; it = it->next) {
|
for (List<LayoutQualifier *> *it = ast->layout_list; it; it = it->next) {
|
||||||
LayoutQualifier *q = it->value;
|
LayoutQualifier *q = it->value;
|
||||||
// q->name;
|
// q->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user