summaryrefslogtreecommitdiffstats
path: root/clang/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/ParseDecl.cpp')
-rw-r--r--clang/Parse/ParseDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Parse/ParseDecl.cpp b/clang/Parse/ParseDecl.cpp
index d1dde242417..6a617128ad5 100644
--- a/clang/Parse/ParseDecl.cpp
+++ b/clang/Parse/ParseDecl.cpp
@@ -13,6 +13,7 @@
#include "clang/Parse/Parser.h"
#include "clang/Parse/DeclSpec.h"
+#include "clang/Parse/Scope.h"
#include "llvm/ADT/SmallSet.h"
using namespace clang;
@@ -1268,7 +1269,7 @@ void Parser::ParseParenDeclarator(Declarator &D) {
// Enter function-declaration scope, limiting any declarators for struct
// tags to the function prototype scope.
// FIXME: is this needed?
- EnterScope(0);
+ EnterScope(Scope::DeclScope);
IsVariadic = false;
while (1) {
OpenPOWER on IntegriCloud