Skip to content

Fix if copying#1278

Merged
kripken merged 2 commits intomasterfrom
copyfix
Nov 16, 2017
Merged

Fix if copying#1278
kripken merged 2 commits intomasterfrom
copyfix

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Nov 9, 2017

We should preserve the forced explicit type if there is one, and not just infer it from the arms. this adds a builder method for makeIf that receives a type to apply to the if, and for blocks a method that makes a block from a list, also with a variant with a provided type.

Found by the fuzzer, this affected inlining which assumes types of copied code are identical to what they were before.

… is one, and not just infer it from the arms. this adds a builder method for makeIf that receives a type to apply to the if, and for blocks a method that makes a block from a list, also with a variant with a provided type
@kripken kripken merged commit dcdaa5d into master Nov 16, 2017
@kripken kripken deleted the copyfix branch November 16, 2017 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant