mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 23:45:36 +00:00
[obj2yaml, COFF] Assert that the alignment is not bogus
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263839 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af640bffc2
commit
cb980bd3e2
@ -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…
x
Reference in New Issue
Block a user