Skip to content
Commit a6d3ab39 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

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
parent b3908407
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment