Author: Timm Bäder Date: 2023-07-05T09:05:53+02:00 New Revision: ddd8c61ee5540bb7f428ea47018c4e88aea8fd87
URL: https://github.com/llvm/llvm-project/commit/ddd8c61ee5540bb7f428ea47018c4e88aea8fd87 DIFF: https://github.com/llvm/llvm-project/commit/ddd8c61ee5540bb7f428ea47018c4e88aea8fd87.diff LOG: [clang][Interp][NFC] Add Descriptor::isCompositeArray() Unused for now, but will be used in later commits. Added: Modified: clang/lib/AST/Interp/Descriptor.h Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/Descriptor.h b/clang/lib/AST/Interp/Descriptor.h index 657dbafb238058..b2dbd892b55bc2 100644 --- a/clang/lib/AST/Interp/Descriptor.h +++ b/clang/lib/AST/Interp/Descriptor.h @@ -174,6 +174,8 @@ struct Descriptor final { /// 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits