================
@@ -2527,6 +2527,83 @@ bool arePotentiallyOverlappingStringLiterals(const
Pointer &LHS,
return Shorter == Longer.take_front(Shorter.size());
}
+static const MaterializeTemporaryExpr *
+getInitializerListBackingArray(const Pointer &Ptr) {
----------------
yronglin wrote:
Renamed to `isInitializerListBackingArray`, to match its AST-side counterpart.
The previous version returned the `MaterializeTemporaryExpr` because callers
needed it; with the new `isBackingArrayForInitializerList()` bit on
`MaterializeTemporaryExpr`, all that callers want is a yes/no, so the name and
return type are now consistent.
https://github.com/llvm/llvm-project/pull/197458
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits