[clang] [clang][bytecode][NFC] Only collect non-null args if we have to (PR #152074)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 5 23:35:57 PDT 2025


================
@@ -2064,7 +2069,7 @@ bool Compiler<Emitter>::visitCallArgs(ArrayRef<const Expr *> Args,
         return false;
     }
 
-    if (FuncDecl && NonNullArgs[ArgIndex]) {
+    if (HasNonNullAttr && NonNullArgs[ArgIndex]) {
----------------
tbaederr wrote:

Yeah, that should work too

https://github.com/llvm/llvm-project/pull/152074


More information about the cfe-commits mailing list