Fix an LLVM assertion when matching against static strings

Fixes #8315
Fixes #11940
Oh interesting! With this change, could you see if the bitcast [here](https://github.com/mozilla/rust/blob/master/src/librustc/middle/trans/controlflow.rs#L351-L353) could be removed?