diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-06-26 19:59:02 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-06-26 19:59:02 +0000 |
commit | 1da044a4da0965a1510d626bf576d1b6c8078c4e (patch) | |
tree | 00688f1aab5e1d3911bff0012c0ddfc978c20cb5 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | ed988fb97d8cbede0880c1f254ff8788803dccb3 (diff) | |
download | llvm-1da044a4da0965a1510d626bf576d1b6c8078c4e.zip llvm-1da044a4da0965a1510d626bf576d1b6c8078c4e.tar.gz llvm-1da044a4da0965a1510d626bf576d1b6c8078c4e.tar.bz2 |
clang-cl: Don't store the cl compiler Tool on the stack (PR20131)
The Command will refer back to the Tool as its source,
so it has to outlive the Command.
Having the Tool on the stack would cause us to crash
when using "clang-cl -GR -fallback", because if the
Command fails, Driver::ExecuteCompilation tries to
peek at the Command's source.
Differential Revision: http://reviews.llvm.org/D4314
llvm-svn: 211802
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions