aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2023-03-14 16:27:55 -0700
committerShafik Yaghmour <shafik.yaghmour@intel.com>2023-03-14 16:37:58 -0700
commitc41be8fc741dec82e6c628d0cad742285be293f6 (patch)
tree350b29794f57753e86be2a523275295df4d8a99c /llvm/lib/Support/CommandLine.cpp
parent59fe64ae47d29fd846f0753a6e61e3dc8d97ecdb (diff)
downloadllvm-c41be8fc741dec82e6c628d0cad742285be293f6.zip
llvm-c41be8fc741dec82e6c628d0cad742285be293f6.tar.gz
llvm-c41be8fc741dec82e6c628d0cad742285be293f6.tar.bz2
[Clang] Fix ClassifyImplicitMemberAccess to handle cases where the access in an unevaluated context is not within a CXXRecordDecl or CXXMethodDecl
ClassifyImplicitMemberAccess assumes that if we are not in a static context then the DeclContext must be a CXXRecordDecl or a CXXMethodDecl. In the case of the unevaluated context this may not be true. This will lead to a crash because contextClass will remain a nullptr. Fixes: https://github.com/llvm/llvm-project/issues/37792 Fixes: https://github.com/llvm/llvm-project/issues/48405 Differential Revision: https://reviews.llvm.org/D142490
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions