[all-commits] [llvm/llvm-project] e6e83c: [clang][dataflow] Don't crash when constructing an...
martinboehme via All-commits
all-commits at lists.llvm.org
Thu Jul 27 05:46:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e6e83cbcc748a55a7eddce67b228298820cb9315
https://github.com/llvm/llvm-project/commit/e6e83cbcc748a55a7eddce67b228298820cb9315
Author: Martin Braenne <mboehme at google.com>
Date: 2023-07-27 (Thu, 27 Jul 2023)
Changed paths:
M clang/lib/Analysis/FlowSensitive/Transfer.cpp
M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
Log Message:
-----------
[clang][dataflow] Don't crash when constructing an array of records.
When I wrote https://reviews.llvm.org/D155446, I assumed that a `CXXConstructExpr` would always have record type, but this isn't true: It can have array type when constructing an array of records. The code would crash in this situation because `createValue()` would return null.
This patch includes a test that reproduces the crash without the other changes in the patch.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D156402
More information about the All-commits
mailing list