From 463f83630f8a5797cec1bd7dac354a3557572efb Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 6 Aug 2010 11:29:41 +0200 Subject: Speed up the comutation of the local members. --- src/shared/cplusplus/CheckExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/cplusplus/CheckExpression.cpp') diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index 6a24d3a51d..27e05390c0 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -123,7 +123,7 @@ bool CheckExpression::visit(ConditionAST *ast) const Name *name = 0; FullySpecifiedType declTy = semantic()->check(ast->declarator, typeSpecTy.qualifiedType(), _scope, &name); - Declaration *decl = control()->newDeclaration(ast->declarator->firstToken(), name); + Declaration *decl = control()->newDeclaration(semantic()->location(ast->declarator), name); decl->setType(declTy); _scope->enterSymbol(decl); return false; -- cgit v1.2.1