[llvm-commits] [llvm] r109875 - /llvm/trunk/lib/MC/MCAssembler.cpp

Daniel Dunbar daniel at zuster.org
Fri Jul 30 11:32:09 PDT 2010


Author: ddunbar
Date: Fri Jul 30 13:32:09 2010
New Revision: 109875

URL: http://llvm.org/viewvc/llvm-project?rev=109875&view=rev
Log:
MC: Initialize MCFragment::Offset, noticed by Cameron Esfahani.

Modified:
    llvm/trunk/lib/MC/MCAssembler.cpp

Modified: llvm/trunk/lib/MC/MCAssembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAssembler.cpp?rev=109875&r1=109874&r2=109875&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAssembler.cpp (original)
+++ llvm/trunk/lib/MC/MCAssembler.cpp Fri Jul 30 13:32:09 2010
@@ -182,7 +182,8 @@
 }
 
 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);





More information about the llvm-commits mailing list