[PATCH] D75081: [CodeView] Align type records on 4-bytes when emitting PDBs
Alexandre Ganea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 14:47:59 PST 2020
aganea marked an inline comment as done.
aganea added inline comments.
================
Comment at: llvm/include/llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h:74
CreateFunc Create) {
+ assert(RecordSize < UINT32_MAX && "Record too big");
+ assert(RecordSize % 4 == 0 && "Record is not aligned to 4 bytes!");
----------------
I just duplicated these two lines from MergingTypeTableBuilder, but I think the test is wrong, it should say `RecordSize < MaxRecordLength` (which is 0xFF00). Changing it breaks the `long-name.ll` test, I could send a patch later.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75081/new/
https://reviews.llvm.org/D75081
More information about the llvm-commits
mailing list