Skip to content

Commit

Permalink
hotfix on instantiation context
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Jan 14, 2024
1 parent bfa6fef commit d6eb53b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9413,19 +9413,21 @@ void Algorithm::makeBlueprintInstantiationContext(const t_instanced_nfo& nfo, co
}
// parameters of non-parameterized ios (for pre-processor widthof/signed)
Algorithm* alg = dynamic_cast<Algorithm*>(nfo.blueprint.raw());
for (auto io : nfo.blueprint->inputs()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
if (alg != nullptr) {
for (auto io : nfo.blueprint->inputs()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
}
}
}
for (auto io : nfo.blueprint->outputs()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
for (auto io : nfo.blueprint->outputs()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
}
}
}
for (auto io : nfo.blueprint->inOuts()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
for (auto io : nfo.blueprint->inOuts()) {
if (io.type_nfo.base_type != Parameterized || !io.type_nfo.same_as.empty()) {
addToInstantiationContext(alg, io.name, io, _local_ictx, _local_ictx);
}
}
}
}
Expand Down

0 comments on commit d6eb53b

Please sign in to comment.