[ConstFold] Slightly clean up icmp of two geps fold (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 4 Jan 2022 11:33:38 +0000 (12:33 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 4 Jan 2022 11:33:38 +0000 (12:33 +0100)
commit1379eb577607dc7a070272e02bcb6712cbb8feed
treee4a895d66efb17251975e0da7bfa87eaf016b033
parent75db002725156fba9e9c38b7cefe57b7ed713734
[ConstFold] Slightly clean up icmp of two geps fold (NFC)

As we're only dealing with one type of constant expression here,
try to directly cast to GEPOperator.
llvm/lib/IR/ConstantFold.cpp