aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ModuleSummaryIndex.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-03-01 07:47:55 -0800
committerReid Kleckner <rnk@google.com>2020-03-01 07:49:28 -0800
commit1adbe86d87bd4ecffc73ab17c7da56f44816f424 (patch)
tree3371f07ae66d3588b2a5a537e130e6a536c7e790 /llvm/lib/IR/ModuleSummaryIndex.cpp
parent619d7dc39a1bb875cca77fe06c7dc670c380c861 (diff)
downloadllvm-1adbe86d87bd4ecffc73ab17c7da56f44816f424.zip
llvm-1adbe86d87bd4ecffc73ab17c7da56f44816f424.tar.gz
llvm-1adbe86d87bd4ecffc73ab17c7da56f44816f424.tar.bz2
[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
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions