aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCAssembler.cpp
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
commit0ecdb6f3d8af4bac2c18f90d369ad25cd9ef4f2d (patch)
treef945f52de5b7a96e9742ada39aaab2ee68e0f720 /lib/MC/MCAssembler.cpp
parent63cc2e1982bd02b6484bba3fc0103c688f13711b (diff)
downloadexternal_llvm-0ecdb6f3d8af4bac2c18f90d369ad25cd9ef4f2d.zip
external_llvm-0ecdb6f3d8af4bac2c18f90d369ad25cd9ef4f2d.tar.gz
external_llvm-0ecdb6f3d8af4bac2c18f90d369ad25cd9ef4f2d.tar.bz2
MC: Initialize MCFragment::Offset, noticed by Cameron Esfahani.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r--lib/MC/MCAssembler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp
index b24c8ca..2512a81 100644
--- a/lib/MC/MCAssembler.cpp
+++ b/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);