================
@@ -2326,14 +2335,17 @@ UnsignedOrNone evaluateBuiltinObjectSize(const
ASTContext &ASTCtx,
bool ReportMinimum = (Kind & 2u);
if (!UseFieldDesc || DetermineForCompleteObject) {
// Lower bound, so we can't fall back to this.
- if (ReportMinimum && !DetermineForCompleteObject)
+ if (ReportMinimum && UseFieldDesc && !DetermineForCompleteObject)
----------------
shafik wrote:
if order to pass the outer if either `UseFieldDesc` has to be `false` or
`DetermineForCompleteObject` has to be `true` but then they can't both be
`true` here. Maybe I am missing something but then please point out the test
that covers this case.
https://github.com/llvm/llvm-project/pull/179271
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits