[llvm-commits] [127336] Fix http://lists.cs.uiuc.edu/pipermail/llvm-commits/ Week-of-Mon-20070514/049736.html
dpatel at apple.com
dpatel at apple.com
Wed May 16 23:23:29 PDT 2007
Revision: 127336
Author: dpatel
Date: 2007-05-16 23:23:29 -0700 (Wed, 16 May 2007)
Log Message:
-----------
Fix http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070514/049736.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-05-17 05:58:55 UTC (rev 127335)
+++ apple-local/branches/llvm/gcc/llvm-types.cpp 2007-05-17 06:23:29 UTC (rev 127336)
@@ -1017,6 +1017,7 @@
Elements.pop_back();
ElementOffsetInBytes.pop_back();
ElementSizeInBytes.pop_back();
+ PaddingElement.pop_back();
}
}
@@ -1060,6 +1061,8 @@
ElementOffsetInBytes.end());
ElementSizeInBytes.erase(ElementSizeInBytes.begin()+FieldNo,
ElementSizeInBytes.end());
+ PaddingElement.erase(PaddingElement.begin()+FieldNo,
+ PaddingElement.end());
}
/// getNewElementByteOffset - If we add a new element with the specified
@@ -1181,6 +1184,7 @@
ElementOffsetInBytes[x-1] + ElementSizeInBytes[x-1]);
ElementSizeInBytes.insert(ElementSizeInBytes.begin() + x, padding);
Elements.insert(Elements.begin() + x, Pad);
+ PaddingElement.insert(PaddingElement.begin() + x, true);
}
}
}
More information about the llvm-commits
mailing list