James Miller
cb1bec9096
Fix some type-related bugs
...
Some types weren't being properly monomorphised, and didn't have their
regions properly erased. This is now fixed.
Also fixes an issue where a temp was initialized in two separate
branches, but wasn't given an alloca.
2016-04-08 15:37:56 +12:00
James Miller
73790f02e3
Move ReturnDest creation into a method
...
It's quite a large amount of code, and moving it into a method allowed
for some refactoring to make the logic a little easier to understand
2016-04-06 17:57:42 +12:00
James Miller
e4d4fa3295
Handle operand temps for function calls
...
This allows temporary destinations for function calls to have their
allocas omitted.
2016-04-04 19:21:27 +12:00
Benjamin Herr
c59ea491ea
librustc_trans: use bug!(), span_bug!()
2016-03-31 22:06:52 +02:00
Eduard Burtescu
035a645e64
rustc_trans: move the contents of the trans module to top-level.
2016-03-27 01:23:28 +02:00