summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Lex/PreprocessingRecordTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Lex/PreprocessingRecordTest.cpp')
-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