add ID::src to allowlist instead

This commit is contained in:
nataliakokoromyti 2025-12-17 01:31:32 -08:00 committed by GitHub
parent cf8be2bae7
commit e289e4c893
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -138,10 +138,10 @@ struct Ice40WrapCarryPass : public Pass {
lut->attributes[a.first.c_str() + strlen("\\SB_LUT4.")] = a.second; lut->attributes[a.first.c_str() + strlen("\\SB_LUT4.")] = a.second;
else if (a.first == ID::src) else if (a.first == ID::src)
src = a.second; src = a.second;
else if (a.first.in(IdString{"\\SB_LUT4.name"}, ID::keep, ID::module_not_derived)) else if (a.first.in(IdString{"\\SB_LUT4.name"}, ID::keep, ID::module_not_derived, ID::src))
continue; continue;
else else
continue; log_abort();
if (!src.empty()) { if (!src.empty()) {
carry->attributes.insert(std::make_pair(ID::src, src)); carry->attributes.insert(std::make_pair(ID::src, src));