Skip to content

Commit 6615ec6

Browse files
authored
[NFC][Clang] Adopt simplified getTrailingObjects in ExprObjC (#143254)
1 parent 3ebb91d commit 6615ec6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/include/clang/AST/ExprObjC.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,10 @@ class ObjCArrayLiteral final
217217
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
218218

219219
/// Retrieve elements of array of literals.
220-
Expr **getElements() { return getTrailingObjects<Expr *>(); }
220+
Expr **getElements() { return getTrailingObjects(); }
221221

222222
/// Retrieve elements of array of literals.
223-
const Expr * const *getElements() const {
224-
return getTrailingObjects<Expr *>();
225-
}
223+
const Expr *const *getElements() const { return getTrailingObjects(); }
226224

227225
/// getNumElements - Return number of elements of objective-c array literal.
228226
unsigned getNumElements() const { return NumElements; }

0 commit comments

Comments
 (0)