Revision: 125951
Author:   dpatel
Date:     2007-04-10 14:43:39 -0700 (Tue, 10 Apr 2007)

Log Message:
-----------
Fix 
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070409/047164.html

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-types.cpp

Modified: apple-local/branches/llvm/gcc/llvm-types.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-types.cpp        2007-04-10 18:47:54 UTC 
(rev 125950)
+++ apple-local/branches/llvm/gcc/llvm-types.cpp        2007-04-10 21:43:39 UTC 
(rev 125951)
@@ -1226,11 +1226,10 @@
     // ordering.  Therefore convert to a packed struct and try again.
     Info.convertToPacked();
     DecodeStructFields(Field, Info);
-  }
-
-  // At this point, we know that adding the element will happen at the right
-  // offset.  Add it.
-  Info.addElement(Ty, StartOffsetInBytes, Info.getTypeSize(Ty));
+  } else 
+    // At this point, we know that adding the element will happen at the right
+    // offset.  Add it.
+    Info.addElement(Ty, StartOffsetInBytes, Info.getTypeSize(Ty));
 }
 
 /// DecodeStructBitField - This method decodes the specified bit-field, adding


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to