diff options
Diffstat (limited to 'include/clang/AST/DeclCXX.h')
-rw-r--r-- | include/clang/AST/DeclCXX.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 2071c1b0e1..f2b798b5a3 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -571,7 +571,7 @@ class CXXRecordDecl : public RecordDecl { /// actual DeclContext does not suffice. This is used for lambdas that /// occur within default arguments of function parameters within the class /// or within a data member initializer. - Decl *ContextDecl; + LazyDeclPtr ContextDecl; /// \brief The list of captures, both explicit and implicit, for this /// lambda. @@ -1673,10 +1673,7 @@ public: /// the declaration in which the lambda occurs, e.g., the function parameter /// or the non-static data member. Otherwise, it returns NULL to imply that /// the declaration context suffices. - Decl *getLambdaContextDecl() const { - assert(isLambda() && "Not a lambda closure type!"); - return getLambdaData().ContextDecl; - } + Decl *getLambdaContextDecl() const; /// \brief Set the mangling number and context declaration for a lambda /// class. |