summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-04-17 20:49:50 +0000
committerDavide Italiano <davide@freebsd.org>2017-04-17 20:49:50 +0000
commitcdc937d0fc14315836b471834fec2ff341de240f (patch)
tree98c5ed3b8d0d3e5c5b53ee710aec0ebdc838e92f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8c4053372efb310560787e3beff07c41760dfdab (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