Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann authored and sftnight committed Jan 12, 2017
1 parent bfe5e72 commit 8579aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Interpreter/IncrementalParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ namespace {
}

class FilteringDiagConsumer: public ForwardingDiagnosticConsumer {
std::stack<bool> fIgnorePromptDiags;
std::unique_ptr<DiagnosticConsumer> fOwnedTarget;
std::stack<bool> fIgnorePromptDiags;

void SyncDiagCountWithTarget() {
NumWarnings = fOwnedTarget->getNumWarnings();
Expand All @@ -117,7 +117,7 @@ namespace {

public:
FilteringDiagConsumer(std::unique_ptr<DiagnosticConsumer>&& Target):
ForwardingDiagnosticConsumer(*Target.get()),
ForwardingDiagnosticConsumer(*Target),
fOwnedTarget(std::move(Target)) {}

void BeginSourceFile(const LangOptions &LangOpts,
Expand Down

0 comments on commit 8579aea

Please sign in to comment.