================
@@ -17945,15 +17945,36 @@ bool Expr::tryEvaluateObjectSize(uint64_t &Result,
ASTContext &Ctx,
static bool EvaluateBuiltinStrLen(const Expr *E, uint64_t &Result,
EvalInfo &Info, std::string *StringResult) {
- if (!E->getType()->hasPointerRepresentation() || !E->isPRValue())
----------------
apple-fcloutier wrote:
Mh, I don't love checking the same thing twice. I reorganized things a little
differently to avoid the `else { return false }` branch.
https://github.com/llvm/llvm-project/pull/135864
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits