about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2014-03-06 23:57:31 +0900
committerklutzy <klutzytheklutzy@gmail.com>2014-03-07 00:18:32 +0900
commitf6afd40fc11a45e3c9b86ea101362a1b579d9283 (patch)
tree9d11b0fb59bd94fb8b2d820e1624f6c76211b427 /src/rustllvm/ExecutionEngineWrapper.cpp
parent0a7b06e955cd3f1c520ec3c2a34a2464f08a46f6 (diff)
downloadrust-f6afd40fc11a45e3c9b86ea101362a1b579d9283.tar.gz
rust-f6afd40fc11a45e3c9b86ea101362a1b579d9283.zip
rustc: Get LLVM error message safely
On Windows, `LLVMRustGetLastError()` may return non-utf8 mojibake string
if system uses non-English locale. It caused ICE when llvm fails.
This patch doesn't fix the real problem, but just make rustc not die.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions