]> granicus.if.org Git - clang/commit
[Basic] Fix ~Diagnostic() to not call Emit() when there is no diag obj (most
authorDaniel Dunbar <daniel@zuster.org>
Tue, 13 Mar 2012 18:30:38 +0000 (18:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 13 Mar 2012 18:30:38 +0000 (18:30 +0000)
commit53c83b32550b3f29db2419160fa2e3684e420556
tree53421b6d91706bea742b9e95b1ea73366f03b0a3
parent981e279b95f3a71e2268124b1abaae050ec200dc
[Basic] Fix ~Diagnostic() to not call Emit() when there is no diag obj (most
commonly when the diag has been copied).
 - This eliminates a completely spurious call to Emit() which was in
   Sema::Diag(). Sob.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152640 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h