OSDN Git Service

[DAGCombine] Use ConstantSDNode::getAPIntValue() instead of getZExtValue().
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Jun 2019 22:14:24 +0000 (22:14 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Jun 2019 22:14:24 +0000 (22:14 +0000)
commit374c7da13717d2bc28f0501cc1e50797afd60058
tree8a3176e144ec0c742f4763deeace840a3bcc1244
parent83c2d8b06ceb7d490c088d8cafc4f991dc10b0f7
[DAGCombine] Use ConstantSDNode::getAPIntValue() instead of getZExtValue().

Use getAPIntValue() in a few more places. Most of the time getZExtValue() is fine, but occasionally there's fuzzed code or someone decides to create i65536 or something.....

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363887 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp