mozilla/rust — pull request #3316 by Vincent-Belliard (2012-08-31 17:42:21+00:00)
Title: fix issue #3222

Borrowed strings have one indirection less than other strings. With the matched expression, an extra Load was done. With patterns, constant strings weren't Store/Load as needed.

I add a test: src/test/run-pass/alt-borrowed_str.rs

I start watching rust 2 weeks ago. Even if I did my best to make something consistent, the LLVM generator is quite hard to understand: I may have miss something. Please, before merging, check I didn't break the model.