diff --git a/src/link/assign.cpp b/src/link/assign.cpp index dd45ae45..9b8d47a2 100644 --- a/src/link/assign.cpp +++ b/src/link/assign.cpp @@ -167,15 +167,8 @@ static std::optional getPlacement(Section const §ion, MemoryLocation SectionTypeInfo const &typeInfo = section.typeInfo(); do { - if (location.bank < typeInfo.firstBank - || location.bank >= memory[section.type].size() + typeInfo.firstBank) { - fatal( - "Invalid bank for %s section \"%s\": %" PRIu32, - typeInfo.name, - section.name.c_str(), - location.bank - ); - } + assume(location.bank >= section.typeInfo().firstBank); + assume(location.bank <= section.typeInfo().lastBank); // Switch to the beginning of the next bank std::deque &bankMem = memory[section.type][location.bank - typeInfo.firstBank];