diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-14 09:24:02 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-14 09:24:02 +0000 |
| commit | 7ef7bab7e3d06f660b059b903c231f100bb13cc5 (patch) | |
| tree | d472a7615b5c7e413aa62a77d0777c1a9cf76478 /lib/Sema/Sema.cpp | |
| parent | 8ba99c00327a4394e7568244d6cffd6e62625a7a (diff) | |
Notes
Diffstat (limited to 'lib/Sema/Sema.cpp')
| -rw-r--r-- | lib/Sema/Sema.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index e3cea5be4283..a5f243816abd 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -183,7 +183,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, CurBlock(0), PackContext(0), IdResolver(pp.getLangOptions()), GlobalNewDeleteDeclared(false), CompleteTranslationUnit(CompleteTranslationUnit), - CurrentInstantiationScope(0) { + NumSFINAEErrors(0), CurrentInstantiationScope(0) { StdNamespace = 0; TUScope = 0; @@ -316,7 +316,8 @@ NamedDecl *Sema::getCurFunctionOrMethodDecl() { } Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() { - this->Emit(); + if (!this->Emit()) + return; // If this is not a note, and we're in a template instantiation // that is different from the last template instantiation where |
