about summary refs log tree commit diff
path: root/src/test/run-pass/issue-1251.rs
AgeCommit message (Collapse)AuthorLines
2011-12-05rustc: Add suffix ".rc" to LLVM module identifierHaitao Li-0/+7
LLVM code generator emits the ".file filename" directive for ELF backends. Value of the "filename" is set as the LLVM module identifier. Due to a LLVM MC bug[1], LLVM crashes if the module identifer is same as other symbols such as a function name in the module. This patch adds a ".rc" suffix (means crates) to LLVM module identifier to workaround the bug. Fixes issue #1251. 1. http://llvm.org/bugs/show_bug.cgi?id=11479