aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2019-08-01 11:46:28 +0000
committerSerge Pavlov <sepavloff@gmail.com>2019-08-01 11:46:28 +0000
commit0c50319927b5fac90fa73d4f0cfcd817875b77cc (patch)
treed7a0c66ec99f6f680af0dd1d04a3147074bfbaa8 /clang/lib/Parse/ParseDecl.cpp
parent1343814fb46e499f593a3e9ceaa03f4e55ce0ec3 (diff)
downloadllvm-0c50319927b5fac90fa73d4f0cfcd817875b77cc.zip
llvm-0c50319927b5fac90fa73d4f0cfcd817875b77cc.tar.gz
llvm-0c50319927b5fac90fa73d4f0cfcd817875b77cc.tar.bz2
[Parser] Change parameter type from int to enum
Some parser functions accept argument of type unsigned while it is actually of type DeclSpec::TST. No functional changes. Differential Revision: https://reviews.llvm.org/D65406 llvm-svn: 367545
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 3cf1f82..63a7de4 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -4098,7 +4098,7 @@ void Parser::ParseStructDeclaration(
/// [OBC] '@' 'defs' '(' class-name ')'
///
void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
- unsigned TagType, Decl *TagDecl) {
+ DeclSpec::TST TagType, Decl *TagDecl) {
PrettyDeclStackTraceEntry CrashInfo(Actions.Context, TagDecl, RecordLoc,
"parsing struct/union body");
assert(!getLangOpts().CPlusPlus && "C++ declarations not supported");