From d655940f41c5c3a7cac6fe51863634b3f1aa168e Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 5 Oct 2011 14:36:12 +0000 Subject: [PATCH] Fix compilation when using gcc-4.6. Patch by wanders. llvm-svn: 141178 --- lib/TableGen/TGPreprocessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TableGen/TGPreprocessor.h b/lib/TableGen/TGPreprocessor.h index 2b9ed9c1566..fe7e2a34bf3 100644 --- a/lib/TableGen/TGPreprocessor.h +++ b/lib/TableGen/TGPreprocessor.h @@ -40,7 +40,7 @@ class TGPreprocessor { public: TGPreprocessor(SourceMgr &SM, tool_output_file &O) - : SrcMgr(SM), Out(O), Lexer(NULL), CurRecords(NULL) { + : SrcMgr(SM), Out(O), Lexer(0), CurRecords(0) { } /// PreprocessFile - Main entrypoint for preprocess a tblgen file. These