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