diff options
| author | Davide Italiano <davide@freebsd.org> | 2017-04-17 20:49:50 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2017-04-17 20:49:50 +0000 |
| commit | cdc937d0fc14315836b471834fec2ff341de240f (patch) | |
| tree | 98c5ed3b8d0d3e5c5b53ee710aec0ebdc838e92f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 8c4053372efb310560787e3beff07c41760dfdab (diff) | |
[InstCombine] Matchers work with both ConstExpr and Instructions.
So, `cast<Instruction>` is not guaranteed to succeed. Change the
code so that we create a new constant and use it in the newly
created instruction, as it's done in other places in InstCombine.
OK'ed by Sanjay/Craig. Fixes PR32686.
llvm-svn: 300495
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
