This revision was automatically updated to reflect the committed changes.
Closed by commit rG64e9ba7048b8: [NFC][CLANG] Fix static code analyzer concerns
(authored by Manna).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151040/new/
https://reviews.llvm.org/D151040
Files:
clang/lib/AST/ExprConstant.cpp
Index: clang/lib/AST/ExprConstant.cpp
===================================================================
--- clang/lib/AST/ExprConstant.cpp
+++ clang/lib/AST/ExprConstant.cpp
@@ -10174,6 +10174,8 @@
if (!EvaluateLValue(E->getSubExpr(), Array, Info))
return false;
+ assert(ArrayType && "unexpected type for array initializer");
+
// Get a pointer to the first element of the array.
Array.addArray(Info, E, ArrayType);
Index: clang/lib/AST/ExprConstant.cpp
===================================================================
--- clang/lib/AST/ExprConstant.cpp
+++ clang/lib/AST/ExprConstant.cpp
@@ -10174,6 +10174,8 @@
if (!EvaluateLValue(E->getSubExpr(), Array, Info))
return false;
+ assert(ArrayType && "unexpected type for array initializer");
+
// Get a pointer to the first element of the array.
Array.addArray(Info, E, ArrayType);
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits