[PATCH] D150892: [clang][ExprConstant] fix __builtin_object_size for flexible array members

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 18 11:17:58 PDT 2023


erichkeane added inline comments.


================
Comment at: clang/lib/AST/ExprConstant.cpp:11740
+          LVal.getLValueBase().dyn_cast<const ValueDecl *>());
+      Result += VD->getFlexibleArrayInitChars(Info.Ctx);
+    }
----------------
Isn't this a possible null-deref?  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150892/new/

https://reviews.llvm.org/D150892



More information about the cfe-commits mailing list