diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:53:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:53:49 +0000 |
commit | 2587ede84d7de6e8ad5b0de9c4ee5eca070a3fd1 (patch) | |
tree | 1afbeea903017e09d490950b96b9a821026664f9 /unittests | |
parent | 4aa8f2bce0f498152d624f748712a991adc23fdd (diff) |
Attempt to fix unit tests
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/AST/APValueTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<DiagnosticIDs> DiagIDs; |