[clang] Fix assert() crash when checking undeduced arg alignment
authorAdam Czachorowski <adamcz@google.com>
Fri, 16 Apr 2021 18:07:46 +0000 (20:07 +0200)
committerAdam Czachorowski <adamcz@google.com>
Fri, 30 Apr 2021 14:24:33 +0000 (16:24 +0200)
commitfbfcfdbf6828b8d36f4ec0ff5f4eac11fb1411a5
treeb48f746dfa49a9643f12996b118995df601ca0ea
parente2a2df2a1e96a523dd7c0f8fb1eb5935aa6b4d09
[clang] Fix assert() crash when checking undeduced arg alignment

There already was a check for undeduced and incomplete types, but it
failed to trigger when outer type (SubstTemplateTypeParm in test) looked
fine, but inner type was not.

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