]> git.lizzy.rs Git - rust.git/commit
Fix type retrieval for Switch translation
authorSimonas Kazlauskas <git@kazlauskas.me>
Thu, 14 Jan 2016 01:22:02 +0000 (03:22 +0200)
committerSimonas Kazlauskas <git@kazlauskas.me>
Fri, 15 Jan 2016 18:27:57 +0000 (20:27 +0200)
commit52ffeda8c833ac97f7c57b239acc30c683fb5391
treecf4c6a6f8167c2323d197536773b1bf7823a0a7d
parentac16d323c9381614e8eb8b466a8b768fc5d47bd9
Fix type retrieval for Switch translation

Previously it would go through def_id and retrieve a type that’s not always correct, monomorphized,
etc.
src/librustc_trans/trans/mir/block.rs