summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRamkumar Ramachandra <r@artagnon.com>2024-05-08 09:47:55 +0100
committerGitHub <noreply@github.com>2024-05-08 09:47:55 +0100
commit57b9c15227ec15a5e2abf4587d7d0ad536cff9e6 (patch)
treebe12282d90705357162537cf7ee560acc245e817 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9ef28cf88ca6e45c3ecb75c649463f8797db68d2 (diff)
VectorCombine: fix logical error after m_Trunc match (#91201)
The matcher m_Trunc() matches an Operator with a given Opcode, which could either be an Instruction or ConstExpr. VectorCombine::foldTruncFromReductions() incorrectly assumes that the pattern matched is always an Instruction, and attempts a cast. Fix this. Fixes #88796.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions