| ... | @@ -1198,13 +1198,11 @@ static AstNode * trans_local_declaration(Context *c, AstNode *block, DeclStmt *s | ... | @@ -1198,13 +1198,11 @@ static AstNode * trans_local_declaration(Context *c, AstNode *block, DeclStmt *s |
| 1198 | node->data.variable_declaration.symbol = buf_create_from_str(decl_name(var_decl)); | 1198 | node->data.variable_declaration.symbol = buf_create_from_str(decl_name(var_decl)); |
| 1199 | QualType qual_type = var_decl->getTypeSourceInfo()->getType(); | 1199 | QualType qual_type = var_decl->getTypeSourceInfo()->getType(); |
| 1200 | node->data.variable_declaration.is_const = qual_type.isConstQualified(); | 1200 | node->data.variable_declaration.is_const = qual_type.isConstQualified(); |
| 1201 | node->data.variable_declaration.type = trans_qual_type(c, block, qual_type); | 1201 | node->data.variable_declaration.type = trans_qual_type(c, qual_type, stmt->getStartLoc()); |
| 1202 | if (var_decl->hasInit()) { | 1202 | if (var_decl->hasInit()) { |
| 1203 | node->data.variable_declaration.expr = trans_expr(c, block, var_decl->getInit()); | 1203 | node->data.variable_declaration.expr = trans_expr(c, block, var_decl->getInit()); |
| 1204 | } | 1204 | } |
| 1205 | | 1205 | |
| 1206 | //emit_warning(c, decl->getLocation(), "asdf"); | | |
| 1207 | | | |
| 1208 | block->data.block.statements.append(node); | 1206 | block->data.block.statements.append(node); |
| 1209 | continue; | 1207 | continue; |
| 1210 | } | 1208 | } |