From: Torok Edwin Date: Mon, 29 Jun 2009 19:59:10 +0000 (+0000) Subject: Initialize CurSection in constructor. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=48de5d8fd0afc4e09fa4f790b74c97a463944ef9 Initialize CurSection in constructor. 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 --- diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index eebb58c9365..d00638c516d 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -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