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 | 29bbc5791e987f999f1ae68f2611dc76163d5b47 (patch) | |
| tree | 8ffe35288dd8b18ba0897431e2af2bb29c23fb71 /lib/CodeGen/CodeGenAction.cpp | |
| parent | c8d94b6e324b3d381db666f94a0f3b14d0cc519a (diff) | |
| download | clang-29bbc5791e987f999f1ae68f2611dc76163d5b47.tar.gz clang-29bbc5791e987f999f1ae68f2611dc76163d5b47.tar.bz2 clang-29bbc5791e987f999f1ae68f2611dc76163d5b47.tar.xz | |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions
