projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44b8472
)
Initialize CurSection in constructor.
author
Torok Edwin
<edwintorok@gmail.com>
Mon, 29 Jun 2009 19:59:10 +0000
(19:59 +0000)
committer
Torok 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
patch
|
blob
|
history
diff --git
a/lib/MC/MCAsmStreamer.cpp
b/lib/MC/MCAsmStreamer.cpp
index eebb58c936515972c09e1f8a4a8b3804cb5ec54c..d00638c516dd1271f173f3697d521f93f3f8a54c 100644
(file)
--- 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