[PATCH] D151280: [NFC][CLANG] Fix static code analyzer concerns

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 24 06:01:33 PDT 2023


erichkeane requested changes to this revision.
erichkeane added inline comments.
This revision now requires changes to proceed.


================
Comment at: clang/lib/CodeGen/CGExprConstant.cpp:1343
     const ConstantArrayType *CAT = CGM.getContext().getAsConstantArrayType(T);
+    assert(CAT && "unexpected type for array initializer");
 
----------------
The assert message doesn't make sense here?  This isn't an initializer for an array?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151280



More information about the cfe-commits mailing list