diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-22 04:59:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-22 04:59:59 +0000 |
commit | f0885ebf487e1fbc54103cc9fc14614bfa0d9c3c (patch) | |
tree | 5382d22cdbcadfcab4791b1f2fd45ca53eb50c74 /lib/Parse/ParseExpr.cpp | |
parent | 8d3237f3021097cadf8dda862caadd6371011b6d (diff) | |
download | clang-f0885ebf487e1fbc54103cc9fc14614bfa0d9c3c.tar.gz |
Use an ArrayRef<OffsetOfComponent> instead of pointer and size throughout offsetof handling code. Also use a range-based for loop. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index ec1edbcde2..4b42a73dd2 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -1997,7 +1997,7 @@ ExprResult Parser::ParseBuiltinPrimaryExpression() { } else { PT.consumeClose(); Res = Actions.ActOnBuiltinOffsetOf(getCurScope(), StartLoc, TypeLoc, - Ty.get(), &Comps[0], Comps.size(), + Ty.get(), Comps, PT.getCloseLocation()); } break; |