summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Lex
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-23 22:43:37 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-23 22:43:37 +0000
commit3f7d548a1637d778d501528ef7555aef901016c3 (patch)
tree976c6022fded6e9e56267c56fc473f420a102e5f /clang/unittests/Lex
parentd64dd12fcf550f4921b29fdc7deb6538cb6cb616 (diff)
downloadbcm5719-llvm-3f7d548a1637d778d501528ef7555aef901016c3.tar.gz
bcm5719-llvm-3f7d548a1637d778d501528ef7555aef901016c3.zip
One last unit-test fix
llvm-svn: 166513
Diffstat (limited to 'clang/unittests/Lex')
-rw-r--r--clang/unittests/Lex/PreprocessingRecordTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Lex/PreprocessingRecordTest.cpp b/clang/unittests/Lex/PreprocessingRecordTest.cpp
index e9898cabfee..cd85487e10d 100644
--- a/clang/unittests/Lex/PreprocessingRecordTest.cpp
+++ b/clang/unittests/Lex/PreprocessingRecordTest.cpp
@@ -10,6 +10,7 @@
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/Diagnostic.h"
+#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Basic/TargetInfo.h"
@@ -32,7 +33,7 @@ protected:
PreprocessingRecordTest()
: FileMgr(FileMgrOpts),
DiagID(new DiagnosticIDs()),
- Diags(DiagID, new IgnoringDiagConsumer()),
+ Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
SourceMgr(Diags, FileMgr),
TargetOpts(new TargetOptions)
{
OpenPOWER on IntegriCloud