================
@@ -245,6 +245,11 @@ bool Context::evaluateStrlen(State &Parent, const Expr *E,
uint64_t &Result) {
if (!FieldDesc->isPrimitiveArray())
return false;
+ // Handle unknown size arrays - we can't determine the length at compile
time
+ if (Ptr.isUnknownSizeArray()) {
+ return false;
+ }
----------------
tbaederr wrote:
This should be `isDummy()` IIRC.
https://github.com/llvm/llvm-project/pull/160015
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits