diff options
author | Reid Kleckner <rnk@google.com> | 2020-03-01 07:47:55 -0800 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2020-03-02 11:38:20 +0100 |
commit | 0bf4795d069642afe2a430521f3549e425f092c9 (patch) | |
tree | 7247639dca1637571e6852a09a1da4e3969cde79 /llvm/lib/Support/Compression.cpp | |
parent | 99e5b2ff9df5ca4c7fe13b63f60d953058cd9ca3 (diff) | |
download | bcm5719-llvm-0bf4795d069642afe2a430521f3549e425f092c9.tar.gz bcm5719-llvm-0bf4795d069642afe2a430521f3549e425f092c9.zip |
[WinEH] Fix inttoptr+phi optimization in presence of catchswitch
getFirstInsertionPt's return value must be checked for validity before
casting it to Instruction*. Don't attempt to insert casts after a phi in
a catchswitch block.
Fixes PR45033, introduced in D37832.
Reviewed By: davidxl, hfinkel
Differential Revision: https://reviews.llvm.org/D75381
(cherry picked from commit 1adbe86d87bd4ecffc73ab17c7da56f44816f424)
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions