From efb31f3f3cb7b97a70dee38e156196d61d58e77c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 5 Oct 2011 14:36:12 +0000 Subject: Fix compilation when using gcc-4.6. Patch by wanders. llvm-svn: 141178 --- llvm/lib/TableGen/TGPreprocessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/TableGen/TGPreprocessor.h') diff --git a/llvm/lib/TableGen/TGPreprocessor.h b/llvm/lib/TableGen/TGPreprocessor.h index 2b9ed9c1566..fe7e2a34bf3 100644 --- a/llvm/lib/TableGen/TGPreprocessor.h +++ b/llvm/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 -- cgit v1.2.3