[ConstantFolding] Avoid use of ConstantExpr::getOr() (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 24 Jul 2023 14:57:57 +0000 (16:57 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 24 Jul 2023 15:00:38 +0000 (17:00 +0200)
commita1403dc3d077e6bba0cbe9dbbbfc7aef4c7ad6b2
tree542109066e530968bf55df75b335af2e4624f1e6
parent57329ca94630742ce3b0f6b239b263d757a9eb4a
[ConstantFolding] Avoid use of ConstantExpr::getOr() (NFC)

Constant folding cannot fail here, because we're really working
on plain integers. It might be better to make all of this work
on APInts instead of Constants.
llvm/lib/Analysis/ConstantFolding.cpp