Initialize CurSection in constructor.
authorTorok Edwin <edwintorok@gmail.com>
Mon, 29 Jun 2009 19:59:10 +0000 (19:59 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 29 Jun 2009 19:59:10 +0000 (19:59 +0000)
Not doing so causes some unittests to fail, because CurSection is uninitialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAsmStreamer.cpp

index eebb58c..d00638c 100644 (file)
@@ -25,7 +25,7 @@ namespace {
 
   public:
     MCAsmStreamer(MCContext &Context, raw_ostream &_OS)
-      : MCStreamer(Context), OS(_OS) {}
+      : MCStreamer(Context), OS(_OS), CurSection(0) {}
     ~MCAsmStreamer() {}
 
     /// @name MCStreamer Interface