summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-05 22:43:29 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-05 22:43:29 +0000
commita6d3ab394c4cd854b5a7b600a578a7a75c69507c (patch)
tree5c44e8f97b5646192a4bd6fad697c63052979821 /clang/lib/CodeGen/CodeGenModule.cpp
parentb39084072f42245e62d9d3bb9d4d599deffc3c59 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud