[obj2yaml, COFF] Assert that the alignment is not bogus

llvm-svn: 263839
This commit is contained in:
David Majnemer 2016-03-18 21:51:14 +00:00
parent 18558b6d9e
commit 22b72c1564
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ void COFFDumper::dumpSections(unsigned NumSections) {
NewYAMLSection.Header.VirtualAddress = ObjSection.getAddress();
NewYAMLSection.Header.VirtualSize = COFFSection->VirtualSize;
NewYAMLSection.Alignment = ObjSection.getAlignment();
assert(NewYAMLSection.Alignment <= 8192);
ArrayRef<uint8_t> sectionData;
if (!ObjSection.isBSS())