aboutsummaryrefslogtreecommitdiffstats
path: root/passes/memory
diff options
context:
space:
mode:
authorDiego H <diego@symbioticeda.com>2019-12-16 10:23:45 -0600
committerDiego H <diego@symbioticeda.com>2019-12-16 10:23:45 -0600
commit87e21b0122bd682db8aeffae3e1ac503c9cea2d2 (patch)
tree78f11723d9aa575fd7a278af75719b29d22215d0 /passes/memory
parentf3f59910eb06bf74a2a4b8157797a327dd097451 (diff)
downloadyosys-87e21b0122bd682db8aeffae3e1ac503c9cea2d2.tar.gz
yosys-87e21b0122bd682db8aeffae3e1ac503c9cea2d2.tar.bz2
yosys-87e21b0122bd682db8aeffae3e1ac503c9cea2d2.zip
Fixing compiler warning/issues. Moving test script to the correct place
Diffstat (limited to 'passes/memory')
-rw-r--r--passes/memory/memory_bram.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/passes/memory/memory_bram.cc b/passes/memory/memory_bram.cc
index 10b48e321..703e87f05 100644
--- a/passes/memory/memory_bram.cc
+++ b/passes/memory/memory_bram.cc
@@ -821,8 +821,8 @@ grow_read_ports:;
log(" Updated properties: dups=%d waste=%d efficiency=%d\n",
match_properties["dups"], match_properties["waste"], match_properties["efficiency"]);
- for (auto& iter: match.attr_match) {
- for (auto& iter: iter.second) {
+ for (auto iter: match.attr_match) {
+ for (auto iter: iter.second) {
auto it = cell->attributes.find(iter.first);
if (iter.second.empty()) {
@@ -1124,8 +1124,8 @@ void handle_cell(Cell *cell, const rules_t &rules)
goto next_match_rule;
}
- for (auto& iter: match.attr_match) {
- for (auto& iter: iter.second) {
+ for (auto iter: match.attr_match) {
+ for (auto iter: iter.second) {
auto it = cell->attributes.find(iter.first);
if (it != cell->attributes.end()) {
@@ -1149,10 +1149,10 @@ void handle_cell(Cell *cell, const rules_t &rules)
if (!it->second.empty()) {
if (it->second.decode_string().length() == 1)
it->second = it->second.as_string().back();
- if (!it->second.decode_string().compare(iter.second.decode_string()))
- goto next_match_rule;
- log(" Rule for bram type %s is rejected: requirement 'attribute %s=\"%s\"' not met.\n",
- log_id(match.name), log_id(iter.first), iter.second.decode_string().c_str());
+ if (!it->second.decode_string().compare(iter.second.decode_string()))
+ goto next_match_rule;
+ log(" Rule for bram type %s is rejected: requirement 'attribute %s=\"%s\"' not met.\n",
+ log_id(match.name), log_id(iter.first), iter.second.decode_string().c_str());
}
}
}