diff options
author | Devang Patel <dpatel@apple.com> | 2010-09-29 23:08:00 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-09-29 23:08:00 +0000 |
commit | 638bb114199590534d684585155807f0a4cfcd3d (patch) | |
tree | 70670bc13b3e0c6ffaf65c21c8a3c0bf64c0f28d | |
parent | 10a7a6a7ec20179b51544f093aee816a1a41793e (diff) |
ImplicitParamDecl is always implicit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115103 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Decl.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |