From 48de5d8fd0afc4e09fa4f790b74c97a463944ef9 Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Mon, 29 Jun 2009 19:59:10 +0000 Subject: [PATCH] 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 --- lib/MC/MCAsmStreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1