Wrapped init in std::set constructor
authorWilliam Speirs <bill.speirs@gmail.com>
Tue, 14 Oct 2014 21:10:53 +0000 (17:10 -0400)
committerClifford Wolf <clifford@clifford.at>
Tue, 14 Oct 2014 22:58:05 +0000 (00:58 +0200)
passes/opt/wreduce.cc

index 89b1f88563a8ef90eb6b86308414920b08654d61..8f59a041ee44891029d1d7011c462ba0b727c609 100644 (file)
@@ -32,14 +32,14 @@ struct WreduceConfig
 
        WreduceConfig()
        {
-               supported_cell_types = {
+               supported_cell_types = std::set<IdString>({
                        "$not", "$pos", "$neg",
                        "$and", "$or", "$xor", "$xnor",
                        "$shl", "$shr", "$sshl", "$sshr", "$shift", "$shiftx",
                        "$lt", "$le", "$eq", "$ne", "$eqx", "$nex", "$ge", "$gt",
                        "$add", "$sub", // "$mul", "$div", "$mod", "$pow",
                        "$mux", "$pmux"
-               };
+               });
        }
 };