================
@@ -769,7 +769,7 @@ Lifetime PtrView::getLifetime() const {
if (Base < sizeof(InlineDescriptor))
return Lifetime::Started;
- if (inArray() && !isArrayRoot()) {
+ if (getFieldDesc()->isPrimitiveArray() && !isArrayRoot()) {
----------------
ojhunt wrote:
Is it worth have `inPrimitiveArray()`? and then a different name for
`inArray()`? It seems like having a generically named `inArray()` method is a
footgun if we really need to care about the kind of array being examined?
https://github.com/llvm/llvm-project/pull/232605
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits