diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-03-05 22:43:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-03-05 22:43:29 +0000 |
commit | a6d3ab394c4cd854b5a7b600a578a7a75c69507c (patch) | |
tree | 5c44e8f97b5646192a4bd6fad697c63052979821 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b39084072f42245e62d9d3bb9d4d599deffc3c59 (diff) | |
download | bcm5719-llvm-a6d3ab394c4cd854b5a7b600a578a7a75c69507c.tar.gz bcm5719-llvm-a6d3ab394c4cd854b5a7b600a578a7a75c69507c.zip |
Check if 'Unit' is NULL before trying to iterate over the diagnostics.
This obviates a null dereference that can occur when 'NumErrors'
is not zero.
llvm-svn: 97849
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions