mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[obj2yaml, COFF] Assert that the alignment is not bogus
llvm-svn: 263839
This commit is contained in:
parent
f71d379eca
commit
9635aa4d95
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user