From 5dc31317dd9698aecbc83d12e74fdf997b1cf1b8 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 30 Jul 2010 18:32:09 +0000 Subject: [PATCH] MC: Initialize MCFragment::Offset, noticed by Cameron Esfahani. llvm-svn: 109875 --- llvm/lib/MC/MCAssembler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index b24c8cab930f..2512a81cf4d0 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);