OSDN Git Service

[DAGCombine] Reduce scope of ShAmtVal variable. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Jun 2019 10:56:37 +0000 (10:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Jun 2019 10:56:37 +0000 (10:56 +0000)
commitc6588e6c21f78e3ae2352ad90d2e18d3a1940e43
treee11647313aa57ad0c03792f94bbd97e5ba59a9ea
parenta511b30bfbd2f7c535c305d4534b4bdfa0c56a0a
[DAGCombine] Reduce scope of ShAmtVal variable. NFCI.

Fixes cppcheck warning.

Use the more capable getAPIntVal() instead of getZExtValue() as well since I'm here.

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