From 6fb3e98eed0e0620ad6d884074c2dc3ba57b7607 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. llvm-svn: 74442 --- llvm/lib/MC/MCAsmStreamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index eebb58c93651..d00638c516dd 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/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