Fix compilation when using gcc-4.6. Patch by wanders.
authorDuncan Sands <baldrick@free.fr>
Wed, 5 Oct 2011 14:36:12 +0000 (14:36 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 5 Oct 2011 14:36:12 +0000 (14:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141178 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGPreprocessor.h

index 2b9ed9c1566f294a60c9f26595d1494080360a22..fe7e2a34bf3d719ae4dec503c9d116546b7810db 100644 (file)
@@ -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