about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2015-12-18 01:24:40 +0100
committerBjörn Steinbrink <bsteinbr@gmail.com>2015-12-18 04:14:52 +0100
commit88ffb26cf50cff64c7ec0f4fc269a377a5b2918a (patch)
tree107f1dbeab5549f97f5e2c1894c0cc2406d1f9e5 /src/libsyntax/errors
parent785a8a6681963ff389b5902e7d6bd30006fafe0a (diff)
downloadrust-88ffb26cf50cff64c7ec0f4fc269a377a5b2918a.tar.gz
rust-88ffb26cf50cff64c7ec0f4fc269a377a5b2918a.zip
Fix emitting asm and object file output at the same time
LLVM doesn't really support reusing the same module to emit more than
one file. One bug this causes is that the IR is invalidated by the stack
coloring pass when emitting the first file, and then the IR verifier
complains by the time we try to emit the second file. Also, we get
different binaries with --emit=asm,link than with just --emit=link. In
some cases leading to segfaults.

Unfortunately, it seems that at this point in time, the most sensible
option to circumvent this problem is to just clone the whole llvm module
for the asm output if we need both, asm and obj file output.

Fixes #24876
Fixes #26235
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions