summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-30 18:32:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-30 18:32:09 +0000
commit5dc31317dd9698aecbc83d12e74fdf997b1cf1b8 (patch)
treec304c3052cbc902ea260aa50669b49b787d04f02
parentc90e82a7f14a0f1b289f81fae08f4c4629c5d569 (diff)
downloadbcm5719-llvm-5dc31317dd9698aecbc83d12e74fdf997b1cf1b8.tar.gz
bcm5719-llvm-5dc31317dd9698aecbc83d12e74fdf997b1cf1b8.zip
MC: Initialize MCFragment::Offset, noticed by Cameron Esfahani.
llvm-svn: 109875
-rw-r--r--llvm/lib/MC/MCAssembler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index b24c8cab930..2512a81cf4d 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -182,7 +182,8 @@ MCFragment::~MCFragment() {
}
MCFragment::MCFragment(FragmentType _Kind, MCSectionData *_Parent)
- : Kind(_Kind), Parent(_Parent), Atom(0), EffectiveSize(~UINT64_C(0))
+ : Kind(_Kind), Parent(_Parent), Atom(0), Offset(~UINT64_C(0)),
+ EffectiveSize(~UINT64_C(0))
{
if (Parent)
Parent->getFragmentList().push_back(this);
OpenPOWER on IntegriCloud