diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-13 01:26:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-13 01:26:44 +0000 |
commit | 78243658c533168d51fd076fba328437932ba6f1 (patch) | |
tree | 5ac50b68c9aacb2e986d1a4afecfcdbab1d1f931 /tools/arcmt-test | |
parent | 21cae2059a06f7d89eee169409c9266def1b1aca (diff) |
When compiling a module on-demand, re-use the diagnostics client
already provided. This required a little bit of clean-up in the way
that VerifyDiagnosticsClient managed ownership of its underlying
"primary" client, because now it will no longer always take ownership.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/arcmt-test')
-rw-r--r-- | tools/arcmt-test/arcmt-test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/arcmt-test/arcmt-test.cpp b/tools/arcmt-test/arcmt-test.cpp index 7477f943ee..aa229d5516 100644 --- a/tools/arcmt-test/arcmt-test.cpp +++ b/tools/arcmt-test/arcmt-test.cpp @@ -112,7 +112,7 @@ static bool checkForMigration(StringRef resourcesPath, // Chain in -verify checker, if requested. VerifyDiagnosticsClient *verifyDiag = 0; if (VerifyDiags) { - verifyDiag = new VerifyDiagnosticsClient(*Diags, Diags->takeClient()); + verifyDiag = new VerifyDiagnosticsClient(*Diags); Diags->setClient(verifyDiag); } |