From 6478bdce01f7e2363f78cb248f677c1db0bdc303 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141178 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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