diff options
author | John McCall <rjmccall@apple.com> | 2010-08-23 07:28:44 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-23 07:28:44 +0000 |
commit | 2b5289b6fd7e3d9899868410a498c081c9595662 (patch) | |
tree | f8b646734be0e98f386ef7bc610fe3fd97e9a35d /lib/Parse/ParseAST.cpp | |
parent | 42d0f2a03eb9e56a8293152ad9530848377a2c91 (diff) |
Push DeclGroupRefs and TemplateNames in an opaque but type-safe way
through the parser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseAST.cpp')
-rw-r--r-- | lib/Parse/ParseAST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseAST.cpp b/lib/Parse/ParseAST.cpp index 0279bb9e06..e500aae369 100644 --- a/lib/Parse/ParseAST.cpp +++ b/lib/Parse/ParseAST.cpp @@ -84,11 +84,11 @@ void clang::ParseAST(Sema &S, bool PrintStats) { // is due to a top-level semicolon, an action override, or a parse error // skipping something. if (ADecl) - Consumer->HandleTopLevelDecl(ADecl.getAsVal<DeclGroupRef>()); + Consumer->HandleTopLevelDecl(ADecl.get()); }; // Check for any pending objective-c implementation decl. while ((ADecl = P.FinishPendingObjCActions())) - Consumer->HandleTopLevelDecl(ADecl.getAsVal<DeclGroupRef>()); + Consumer->HandleTopLevelDecl(ADecl.get()); // Process any TopLevelDecls generated by #pragma weak. for (llvm::SmallVector<Decl*,2>::iterator |