[all-commits] [llvm/llvm-project] f8cedc: [clang] Never wrap a nullptr in CXXNewExpr::getArr...
Timm Bäder via All-commits
all-commits at lists.llvm.org
Tue Feb 22 07:28:00 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f8cedc642d9b85720cb7175ef25ddde90a3fbca2
https://github.com/llvm/llvm-project/commit/f8cedc642d9b85720cb7175ef25ddde90a3fbca2
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/ExprCXX.h
M clang/lib/AST/ExprConstant.cpp
M clang/lib/AST/StmtPrinter.cpp
M clang/lib/Sema/TreeTransform.h
A clang/test/AST/issue53742.cpp
Log Message:
-----------
[clang] Never wrap a nullptr in CXXNewExpr::getArraySize()
Otherwise callers of these functions have to check both the return value
for and the contents of the returned llvm::Optional.
Fixes #53742
Differential Revision: https://reviews.llvm.org/D119525
More information about the All-commits
mailing list