diff options
| author | Peter Rong <PeterRong96@gmail.com> | 2022-10-24 19:10:47 -0700 |
|---|---|---|
| committer | Peter Rong <PeterRong96@gmail.com> | 2022-11-03 15:26:54 -0700 |
| commit | 348189880b7bc9513ccdd0ea3a1e255b4d3190e7 (patch) | |
| tree | 3e3e9bbdcba1a2e8dc777e4fafbf3d3785355868 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | c9a959334707810795f7e8c56ab6dd55ff0a359d (diff) | |
[IR Verifier] didn't check if switch case is constant, align IR Verifier's check with LLParser.
If a programmer incorrectly `Switch->setOperand()` and `Verifier` will pass, causing problems when dumping this `Module`
This patch aligns SwitchInst's check with LLParser. It also includes a test to justify the patch.
Differential Revision: https://reviews.llvm.org/D136656
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
