Without this patch VarDecl::hasDependent() checks only undeduced auto types, so can give false negatives result for other undeduced types.
This lead to crashes in sequence !VarDecl::hasDepentent() => getDeclAlign().
It seems this problem appeared since D105380