From ddd8c61ee5540bb7f428ea47018c4e88aea8fd87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Jul 2023 20:32:17 +0200 Subject: [PATCH] [clang][Interp][NFC] Add Descriptor::isCompositeArray() Unused for now, but will be used in later commits. --- clang/lib/AST/Interp/Descriptor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/AST/Interp/Descriptor.h b/clang/lib/AST/Interp/Descriptor.h index 657dbaf..b2dbd89 100644 --- a/clang/lib/AST/Interp/Descriptor.h +++ b/clang/lib/AST/Interp/Descriptor.h @@ -174,6 +174,8 @@ public: /// Checks if the descriptor is of an array of primitives. bool isPrimitiveArray() const { return IsArray && !ElemDesc; } + /// Checks if the descriptor is of an array of composites. + bool isCompositeArray() const { return IsArray && ElemDesc; } /// Checks if the descriptor is of an array of zero size. bool isZeroSizeArray() const { return Size == 0; } /// Checks if the descriptor is of an array of unknown size. -- 2.7.4