Clang will crash if it tries to compile the following code. This commit
fixes it.
$ cat foo.c void foo(_Nullable int *ptr) { __auto_type _Nonnull a = ptr; }; $ clang foo.c -c -Wnullable-to-nonnull-conversion
Differential D116342
[clang][AST] Fix crash when printing error ellis on Dec 28 2021, 1:24 PM. Authored by
Details Clang will crash if it tries to compile the following code. This commit $ cat foo.c void foo(_Nullable int *ptr) { __auto_type _Nonnull a = ptr; }; $ clang foo.c -c -Wnullable-to-nonnull-conversion
Diff Detail
Event Timeline
|
Hi @dblaikie, I'm not familiar with this code but I'm wondering if these uses of T should actually be UnderlyingType. Will this cause a crash similar to what I found?