[clang] Do not crash when ArgTy is null in CheckArgAlignment
authorAdam Czachorowski <adamcz@google.com>
Mon, 7 Jun 2021 16:26:21 +0000 (18:26 +0200)
committerAdam Czachorowski <adamcz@google.com>
Thu, 10 Jun 2021 14:54:15 +0000 (16:54 +0200)
commit49eba8bf1780684f1173a455b909ce37008eaa09
tree043a2f55f6267ba08521e8e5ce05e1c55f083e7c
parent63233da7230a9c7c674483ccc75976aba07197cb
[clang] Do not crash when ArgTy is null in CheckArgAlignment

This can happen around RecoveryExpr.

Differential Revision: https://reviews.llvm.org/D103825
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/recovery-expr-type.cpp