[llvm-commits] [llvm] r74442 - /llvm/trunk/lib/MC/MCAsmStreamer.cpp
Torok Edwin
edwintorok at gmail.com
Mon Jun 29 12:59:11 PDT 2009
Author: edwin
Date: Mon Jun 29 14:59:10 2009
New Revision: 74442
URL: http://llvm.org/viewvc/llvm-project?rev=74442&view=rev
Log:
Initialize CurSection in constructor.
Not doing so causes some unittests to fail, because CurSection is uninitialized.
Modified:
llvm/trunk/lib/MC/MCAsmStreamer.cpp
Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=74442&r1=74441&r2=74442&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Mon Jun 29 14:59:10 2009
@@ -25,7 +25,7 @@
public:
MCAsmStreamer(MCContext &Context, raw_ostream &_OS)
- : MCStreamer(Context), OS(_OS) {}
+ : MCStreamer(Context), OS(_OS), CurSection(0) {}
~MCAsmStreamer() {}
/// @name MCStreamer Interface
More information about the llvm-commits
mailing list