From: Douglas Gregor Date: Thu, 29 Sep 2011 00:53:49 +0000 (+0000) Subject: Attempt to fix unit tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2587ede84d7de6e8ad5b0de9c4ee5eca070a3fd1;p=clang Attempt to fix unit tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/AST/APValueTest.cpp b/unittests/AST/APValueTest.cpp index 98cb086931..5ac454de5f 100644 --- a/unittests/AST/APValueTest.cpp +++ b/unittests/AST/APValueTest.cpp @@ -31,6 +31,10 @@ class DiagnosticOutputGetter { } StringRef get() const { return LastDiagnostic; } + + virtual DiagnosticConsumer *clone(DiagnosticsEngine &Diags) const { + return new LastDiagnosticString(); + } }; const IntrusiveRefCntPtr DiagIDs;