aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2021-12-29 11:40:03 +0700
committerSerge Pavlov <sepavloff@gmail.com>2021-12-30 14:31:44 +0700
commitecfd9196d5dde5699d7fe3bd411949a56e01bd8c (patch)
tree0b17e3cc40e0a53fe4a3b8daf525dfd86407c219 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent5da6d26896d196cfbc992af32f82f8d2faf100c5 (diff)
downloadllvm-ecfd9196d5dde5699d7fe3bd411949a56e01bd8c.zip
llvm-ecfd9196d5dde5699d7fe3bd411949a56e01bd8c.tar.gz
llvm-ecfd9196d5dde5699d7fe3bd411949a56e01bd8c.tar.bz2
[ConstantFolding] Use ICmpInst::Predicate instead of plain integer
The function `ConstantFoldCompareInstruction` uses `unsigned short` to represent compare predicate, although all usesrs of the respective include file use definition of CmpInst also. This change replaces predicate argument type in this function to `ICmpInst::Predicate`, which allows to make code a bit clearer and simpler. No functional changes. Differential Revision: https://reviews.llvm.org/D116379
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions