]> granicus.if.org Git - clang/commitdiff
One last unit-test fix
authorDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 22:43:37 +0000 (22:43 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 22:43:37 +0000 (22:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166513 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Lex/PreprocessingRecordTest.cpp

index e9898cabfeea06b07aaf8a94f784442648fb9c6d..cd85487e10d0b2308bff2d8a1992dea80a3571fd 100644 (file)
@@ -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)
   {