GP-0: PR cleanup

This commit is contained in:
Ryan Kurtz 2023-03-20 07:41:30 -04:00
parent 247a4feedf
commit 131fdd9df1

View File

@ -351,7 +351,7 @@ public class OmfFileHeader extends OmfRecord {
header.groups.add(group);
}
else if (record instanceof OmfFixupRecord fixuprec) {
if(lastDataBlock != null) {
if (lastDataBlock != null) {
fixuprec.setDataBlock(lastDataBlock);
header.fixup.add(fixuprec);
}
@ -370,6 +370,7 @@ public class OmfFileHeader extends OmfRecord {
lastDataBlock = iterheader;
}
else if (record instanceof OmfUnsupportedRecord) {
// TODO: Should we always set lastDataBlock to null?
if (record.getRecordType() == COMDAT) {
lastDataBlock = null;
}