aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/attrmap.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-08-10 13:44:08 +0200
committerClifford Wolf <clifford@clifford.at>2016-08-10 13:44:08 +0200
commit73b7232ec89d9e3611ee5dbbc0cf663a33b09c8f (patch)
treee68c25fc7a642e17ae327d5c3935af3b939181e0 /passes/techmap/attrmap.cc
parentb0aab4e3046f1a598314e2563fa84b3a8ddc7fa5 (diff)
downloadyosys-73b7232ec89d9e3611ee5dbbc0cf663a33b09c8f.tar.gz
yosys-73b7232ec89d9e3611ee5dbbc0cf663a33b09c8f.tar.bz2
yosys-73b7232ec89d9e3611ee5dbbc0cf663a33b09c8f.zip
Fixed some compiler warnings in attrmap command
Diffstat (limited to 'passes/techmap/attrmap.cc')
-rw-r--r--passes/techmap/attrmap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/attrmap.cc b/passes/techmap/attrmap.cc
index 648d1bc5a..f715b63ed 100644
--- a/passes/techmap/attrmap.cc
+++ b/passes/techmap/attrmap.cc
@@ -174,14 +174,14 @@ struct AttrmapPass : public Pass {
if (arg == "-tocase" && argidx+1 < args.size()) {
auto action = new AttrmapTocase;
action->name = args[++argidx];
- actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+ actions.push_back(std::unique_ptr<AttrmapAction>(action));
continue;
}
if (arg == "-rename" && argidx+2 < args.size()) {
auto action = new AttrmapRename;
action->old_name = args[++argidx];
action->new_name = args[++argidx];
- actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+ actions.push_back(std::unique_ptr<AttrmapAction>(action));
continue;
}
if ((arg == "-map" || arg == "-imap") && argidx+2 < args.size()) {
@@ -204,7 +204,7 @@ struct AttrmapPass : public Pass {
action->new_name = arg2;
action->old_value = val1;
action->new_value = val2;
- actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+ actions.push_back(std::unique_ptr<AttrmapAction>(action));
continue;
}
if (arg == "-remove" && argidx+1 < args.size()) {
@@ -217,7 +217,7 @@ struct AttrmapPass : public Pass {
auto action = new AttrmapRemove;
action->name = arg1;
action->value = val1;
- actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+ actions.push_back(std::unique_ptr<AttrmapAction>(action));
continue;
}
if (arg == "-modattr") {