aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-07-03 19:38:30 +0200
committerClifford Wolf <clifford@clifford.at>2017-07-03 19:38:30 +0200
commit621787a9e0ab8064d004735889430e20b6e9c274 (patch)
tree3f6875066c61ca5d652ba417293dc1ba10bf701d
parent5c1c1263749672991c0462405eb0c76ab6989bd6 (diff)
downloadyosys-621787a9e0ab8064d004735889430e20b6e9c274.tar.gz
yosys-621787a9e0ab8064d004735889430e20b6e9c274.tar.bz2
yosys-621787a9e0ab8064d004735889430e20b6e9c274.zip
Fix some c++ clang compiler errors
-rw-r--r--techlibs/coolrunner2/coolrunner2_sop.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/techlibs/coolrunner2/coolrunner2_sop.cc b/techlibs/coolrunner2/coolrunner2_sop.cc
index cc214cfd2..eb8754de7 100644
--- a/techlibs/coolrunner2/coolrunner2_sop.cc
+++ b/techlibs/coolrunner2/coolrunner2_sop.cc
@@ -49,7 +49,7 @@ struct Coolrunner2SopPass : public Pass {
{
auto not_input = cell->getPort("\\A")[0];
auto not_output = cell->getPort("\\Y")[0];
- not_cells[not_input] = {not_output, cell};
+ not_cells[not_input] = tuple<SigBit, Cell*>(not_output, cell);
}
}
}
@@ -79,7 +79,7 @@ struct Coolrunner2SopPass : public Pass {
sop_output = std::get<0>(not_cell);
// remove the $_NOT_ cell because it gets folded into the xor
- cells_to_remove.insert({module, std::get<1>(not_cell)});
+ cells_to_remove.insert(tuple<Module*, Cell*>(module, std::get<1>(not_cell)));
}
// Construct AND cells
@@ -140,7 +140,7 @@ struct Coolrunner2SopPass : public Pass {
}
// Finally, remove the $sop cell
- cells_to_remove.insert({module, cell});
+ cells_to_remove.insert(tuple<Module*, Cell*>(module, cell));
}
}
}