[PATCH] D151137: ]NFC][Clang] Fix Coverity bug with dereference null return value in clang::CodeGen::CodeGenFunction::Emi tOMPArraySectionExpr()
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 07:26:24 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcc6a6c48d4bb: [NFC][Clang] Fix Coverity bug with dereference null return value in clang… (authored by Manna).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151137/new/
https://reviews.llvm.org/D151137
Files:
clang/lib/CodeGen/CGExpr.cpp
Index: clang/lib/CodeGen/CGExpr.cpp
===================================================================
--- clang/lib/CodeGen/CGExpr.cpp
+++ clang/lib/CodeGen/CGExpr.cpp
@@ -4102,6 +4102,7 @@
}
} else {
auto *CAT = C.getAsConstantArrayType(ArrayTy);
+ assert(CAT && "unexpected type for array initializer");
ConstLength = CAT->getSize();
}
if (Length) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151137.524705.patch
Type: text/x-patch
Size: 409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230523/b8d70507/attachment.bin>
More information about the cfe-commits
mailing list