diff options
author | Anders Carlsson <andersca@mac.com> | 2009-07-27 14:55:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-07-27 14:55:54 +0000 |
commit | b97a3ec4e7459b1376ab36d70dc23d8c0de146cc (patch) | |
tree | cacae067a08de3ce9fa10b3c9028be8566081edc /clang/lib/CodeGen/CGRecordLayoutBuilder.h | |
parent | 729749d34d8110e3fd6e67231a9d16cf8fa00bbf (diff) | |
download | bcm5719-llvm-b97a3ec4e7459b1376ab36d70dc23d8c0de146cc.tar.gz bcm5719-llvm-b97a3ec4e7459b1376ab36d70dc23d8c0de146cc.zip |
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.
llvm-svn: 77189
Diffstat (limited to 'clang/lib/CodeGen/CGRecordLayoutBuilder.h')
-rw-r--r-- | clang/lib/CodeGen/CGRecordLayoutBuilder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGRecordLayoutBuilder.h b/clang/lib/CodeGen/CGRecordLayoutBuilder.h index b9387856d11..f236881b5e2 100644 --- a/clang/lib/CodeGen/CGRecordLayoutBuilder.h +++ b/clang/lib/CodeGen/CGRecordLayoutBuilder.h @@ -111,6 +111,10 @@ class CGRecordLayoutBuilder { /// AppendBytes - Append a given number of bytes to the record. void AppendBytes(uint64_t NumBytes); + /// AppendTailPadding - Append enough tail padding so that the type will have + /// the passed size. + void AppendTailPadding(uint64_t RecordSize); + /// getNextFieldOffsetInBytes - returns where the next field offset is. uint64_t getNextFieldOffsetInBytes() const; |