Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an IR instruction to switch over the contents of a union #1564

Merged
merged 3 commits into from
Aug 22, 2024

Test union narrowing in generic function

29bf165
Select commit
Loading
Failed to load commit list.
Merged

Add an IR instruction to switch over the contents of a union #1564

Test union narrowing in generic function
29bf165
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Aug 22, 2024 in 1s

71.42% of diff hit (target 87.83%)

View this Pull Request on Codecov

71.42% of diff hit (target 87.83%)

Annotations

Check warning on line 743 in Sources/IR/Emitter.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Emitter.swift#L740-L743

Added lines #L740 - L743 were not covered by tests

Check warning on line 748 in Sources/IR/Emitter.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Emitter.swift#L746-L748

Added lines #L746 - L748 were not covered by tests

Check warning on line 3080 in Sources/IR/Emitter.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Emitter.swift#L3077-L3080

Added lines #L3077 - L3080 were not covered by tests

Check warning on line 3085 in Sources/IR/Emitter.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Emitter.swift#L3083-L3085

Added lines #L3083 - L3085 were not covered by tests

Check warning on line 38 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L36-L38

Added lines #L36 - L38 were not covered by tests

Check warning on line 44 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L41-L44

Added lines #L41 - L44 were not covered by tests

Check warning on line 46 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L46

Added line #L46 was not covered by tests

Check warning on line 56 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L53-L56

Added lines #L53 - L56 were not covered by tests

Check warning on line 58 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L58

Added line #L58 was not covered by tests

Check warning on line 75 in Sources/IR/Operands/Instruction/UnionSwitch.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/IR/Operands/Instruction/UnionSwitch.swift#L75

Added line #L75 was not covered by tests