diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-10 22:45:26 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-10 22:45:26 -0700 |
commit | 2e603c67c204b6bc9d96bf090ef4fd3a5b04aa51 (patch) | |
tree | a9d6baf6aa764c77f5f63526d4c39361ff5c276b /clang/lib/Parse/ParseDecl.cpp | |
parent | f5ef2c58381fb8056bf919c7a0862bb8d65e1e28 (diff) | |
download | llvm-2e603c67c204b6bc9d96bf090ef4fd3a5b04aa51.zip llvm-2e603c67c204b6bc9d96bf090ef4fd3a5b04aa51.tar.gz llvm-2e603c67c204b6bc9d96bf090ef4fd3a5b04aa51.tar.bz2 |
[clang] Construct SmallVector with iterator ranges (NFC)
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 0cdf915..a1a768b 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -4490,8 +4490,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc, // If attributes exist after struct contents, parse them. MaybeParseGNUAttributes(attrs); - SmallVector<Decl *, 32> FieldDecls(TagDecl->field_begin(), - TagDecl->field_end()); + SmallVector<Decl *, 32> FieldDecls(TagDecl->fields()); Actions.ActOnFields(getCurScope(), RecordLoc, TagDecl, FieldDecls, T.getOpenLocation(), T.getCloseLocation(), attrs); |