[all-commits] [llvm/llvm-project] 8f768e: [Clang] Fix crash when visting a fold expression i...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Thu Sep 28 12:20:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8f768ec00592009cda496c8f7bfeef013887b5f3
https://github.com/llvm/llvm-project/commit/8f768ec00592009cda496c8f7bfeef013887b5f3
Author: Shafik Yaghmour <shafik at users.noreply.github.com>
Date: 2023-09-28 (Thu, 28 Sep 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/SemaTemplate/cxx1z-fold-expressions.cpp
Log Message:
-----------
[Clang] Fix crash when visting a fold expression in a default argument (#67514)
CheckDefaultArgumentVisitor::Visit(...) assumes that the children of
Expr will not be NULL. This is not a valid assumption and when we have a
CXXFoldExpr the children can be NULL and this causes a crash.
Fixes: https://github.com/llvm/llvm-project/issues/67395
More information about the All-commits
mailing list