From: Duncan Sands Date: Wed, 5 Oct 2011 14:36:12 +0000 (+0000) Subject: Fix compilation when using gcc-4.6. Patch by wanders. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6478bdce01f7e2363f78cb248f677c1db0bdc303;p=oota-llvm.git 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 --- 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