[RISCV][ISel] Attempt to fix UBSan error
authorQuentin Colombet <quentin.colombet@gmail.com>
Wed, 5 Oct 2022 20:59:28 +0000 (20:59 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Wed, 5 Oct 2022 20:59:28 +0000 (20:59 +0000)
commit6bbe7d376e48946ea5450ca4a7d48637ed6a67a4
tree3c398c58c59c7f1363ab178a4f20ee1c0b7a03bb
parentc5c2de287e5ff1803a10d94b0ab17b579442726d
[RISCV][ISel] Attempt to fix UBSan error

Explicitly check an SDValue with the invalid SDValue.

UBSan reports:
runtime error: load of value 36, which is not a valid value for type
'bool'

https://lab.llvm.org/buildbot/#/builders/85/builds/11231
llvm/lib/Target/RISCV/RISCVISelLowering.cpp