From 638bb114199590534d684585155807f0a4cfcd3d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 29 Sep 2010 23:08:00 +0000 Subject: [PATCH] ImplicitParamDecl is always implicit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115103 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Decl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index c0b8681024..d4c6600292 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -928,7 +928,9 @@ class ImplicitParamDecl : public VarDecl { protected: ImplicitParamDecl(Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, QualType Tw) - : VarDecl(DK, DC, L, Id, Tw, /*TInfo=*/0, SC_None, SC_None) {} + : VarDecl(DK, DC, L, Id, Tw, /*TInfo=*/0, SC_None, SC_None) { + setImplicit(); + } public: static ImplicitParamDecl *Create(ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, -- 2.50.1