| ... | @@ -697,9 +697,6 @@ pub const Target = struct { | ... | @@ -697,9 +697,6 @@ pub const Target = struct { |
| 697 | pub const ShiftInt = std.math.Log2Int(usize); | 697 | pub const ShiftInt = std.math.Log2Int(usize); |
| 698 | | 698 | |
| 699 | pub const empty = Set{ .ints = [1]usize{0} ** usize_count }; | 699 | pub const empty = Set{ .ints = [1]usize{0} ** usize_count }; |
| 700 | pub fn empty_workaround() Set { | | |
| 701 | return Set{ .ints = [1]usize{0} ** usize_count }; | | |
| 702 | } | | |
| 703 | | 700 | |
| 704 | pub fn isEmpty(set: Set) bool { | 701 | pub fn isEmpty(set: Set) bool { |
| 705 | return for (set.ints) |x| { | 702 | return for (set.ints) |x| { |
| ... | @@ -782,7 +779,7 @@ pub const Target = struct { | ... | @@ -782,7 +779,7 @@ pub const Target = struct { |
| 782 | return struct { | 779 | return struct { |
| 783 | /// Populates only the feature bits specified. | 780 | /// Populates only the feature bits specified. |
| 784 | pub fn featureSet(features: []const F) Set { | 781 | pub fn featureSet(features: []const F) Set { |
| 785 | var x = Set.empty_workaround(); // TODO remove empty_workaround | 782 | var x = Set.empty; |
| 786 | for (features) |feature| { | 783 | for (features) |feature| { |
| 787 | x.addFeature(@enumToInt(feature)); | 784 | x.addFeature(@enumToInt(feature)); |
| 788 | } | 785 | } |