diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index 9779ecae9..651f772c9 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -204,7 +204,7 @@ struct TechmapWorker
 			design->select(module, m);
 		}
 
-		std::map<IdString, IdString> positional_ports;
+		dict<IdString, IdString> positional_ports;
 		dict<Wire*, IdString> temp_renamed_wires;
 		pool<SigBit> autopurge_tpl_bits;