[clang] [clang][bytecode] Use SmallVector for Function::Code (PR #151821)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 4 01:56:23 PDT 2025
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/151821 at github.com>
================
@@ -44,12 +44,12 @@ bool Context::isPotentialConstantExpr(State &Parent, const FunctionDecl *FD) {
Compiler<ByteCodeEmitter>(*this, *P).compileFunc(
FD, const_cast<Function *>(Func));
- ++EvalID;
- // And run it.
- if (!Run(Parent, Func))
+ if (!Func->isValid())
return false;
- return Func->isValid();
+ ++EvalID;
+ // And run it.
----------------
tbaederr wrote:
I don't really care either way but this comment isn't new from this patch, just moved down a bit.
https://github.com/llvm/llvm-project/pull/151821
More information about the cfe-commits
mailing list