diff options
| author | Justus Klausecker <justus@klausecker.de> | 2025-08-08 15:16:34 +0200 |
|---|---|---|
| committer | Justus Klausecker <justus@klausecker.de> | 2025-08-12 16:33:58 +0200 |
| commit | 79756e681d50d85576c890e4dd5c967f10d2e8ec (patch) | |
| tree | 5fd93821ffca230ffe817b69eb0e0163446b313b /src/Zcu/PerThread.zig | |
| parent | 76d2782149bef0214526a36a888c00adc5f2f897 (diff) | |
| download | zig-79756e681d50d85576c890e4dd5c967f10d2e8ec.tar.gz zig-79756e681d50d85576c890e4dd5c967f10d2e8ec.zip | |
remove redundant test cases
Diffstat (limited to 'src/Zcu/PerThread.zig')
| -rw-r--r-- | src/Zcu/PerThread.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 92ef34c6cd..5a76760540 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -3668,8 +3668,8 @@ pub fn unionValue(pt: Zcu.PerThread, union_ty: Type, tag: Value, val: Value) All pub fn aggregateValue(pt: Zcu.PerThread, ty: Type, elems: []const InternPool.Index) Allocator.Error!Value { for (elems) |elem| { if (!Value.fromInterned(elem).isUndef(pt.zcu)) break; - } else if (elems.len > 0) { // all-undef - return pt.undefValue(ty); + } else if (elems.len > 0) { + return pt.undefValue(ty); // all-undef } return .fromInterned(try pt.intern(.{ .aggregate = .{ .ty = ty.toIntern(), |
