Make sure we don't give the wrong warning, and make sure not to set 
hadError (suppressing future diagnostics) if we didn't print an 
error.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72588 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed