diff options
author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-01-02 18:02:08 -0800 |
---|---|---|
committer | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-01-02 18:03:42 -0800 |
commit | e27b5f9371382952eb5482ad151bb6fcb4cd0d7c (patch) | |
tree | b55dc0c7d7d83ba6577d7b6088323f070b58cd90 /llvm/unittests/Support/BinaryStreamTest.cpp | |
parent | 1a0a177965e88d61b5d3cd3e7f7f89011f0827c1 (diff) | |
download | llvm-e27b5f9371382952eb5482ad151bb6fcb4cd0d7c.zip llvm-e27b5f9371382952eb5482ad151bb6fcb4cd0d7c.tar.gz llvm-e27b5f9371382952eb5482ad151bb6fcb4cd0d7c.tar.bz2 |
[clang][AST] Fix crash when printing error
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
```
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D116342
Diffstat (limited to 'llvm/unittests/Support/BinaryStreamTest.cpp')
0 files changed, 0 insertions, 0 deletions