Fixed several AST nodes wrongly marked with implicit/explicit flag

This commit is contained in:
Denis Vnukov
2016-01-25 14:06:21 -08:00
parent 42cba88f2c
commit db6582c72b
5 changed files with 22 additions and 7 deletions

View File

@@ -1487,8 +1487,10 @@ static void createStubBody(TypeChecker &tc, ConstructorDecl *ctor) {
"." +
classDecl->getName().str()).toStringRef(buffer));
Expr *className = new (tc.Context) StringLiteralExpr(fullClassName, loc);
Expr *className = new (tc.Context) StringLiteralExpr(fullClassName, loc,
/*Implicit=*/true);
className = new (tc.Context) ParenExpr(loc, className, loc, false);
className->setImplicit();
Expr *call = new (tc.Context) CallExpr(fn, className, /*Implicit=*/true);
ctor->setBody(BraceStmt::create(tc.Context, SourceLoc(),
ASTNode(call),