================
@@ -727,6 +783,18 @@ convertRecordArgPassingKind(RecordArgPassingKind kind) {
   llvm_unreachable("unknown RecordArgPassingKind");
 }
 
+/// Whether the member kinds on \p recordTy answer the record's ABI emptiness
+/// the same way the AST predicate does.  A lowering that dropped a field
+/// holding data has no member left to carry that data, so it is exempt.
+[[maybe_unused]] static bool
----------------
adams381 wrote:

It's only called from the two asserts below it, so under `NDEBUG` it is 
unreferenced and `-Wunused-function` fires without the attribute. Same shape as 
`hasNoRepeatedElements` in `BasicValueFactory.cpp`.

https://github.com/llvm/llvm-project/pull/215175
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to