]> git.lizzy.rs Git - rust.git/commit
Move zero-sized type handling logic to `new_operand`
authorJames Miller <james@aatch.net>
Sun, 17 Apr 2016 02:37:52 +0000 (14:37 +1200)
committerJames Miller <james@aatch.net>
Thu, 28 Apr 2016 01:18:51 +0000 (13:18 +1200)
commitc55d9e591b1f66d4677dac2efda6b70afcd4b345
tree12fa5c77af08580d47e92b484c1a51f351eda8d2
parent89edd96be86fd65d63f63a208062c8baf86e7d7c
Move zero-sized type handling logic to `new_operand`

`new_operand` now checks the type it's given and either creates the nil
value itself, or produces an empty operand.
src/librustc_trans/mir/mod.rs