diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-03-02 11:11:22 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-03-02 11:11:22 +0000 |
commit | 37a63a748e7dd431f9576aaff3bcbd8f923c8c79 (patch) | |
tree | 8c4e52f264fa8dd8c88d337e8620b11f5735e4d8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 9b468c0b1e3f6b2df84e0891263488bd61456eec (diff) | |
download | bcm5719-llvm-37a63a748e7dd431f9576aaff3bcbd8f923c8c79.tar.gz bcm5719-llvm-37a63a748e7dd431f9576aaff3bcbd8f923c8c79.zip |
Use SDValue::getConstantOperandAPInt helper where possible. NFCI.
llvm-svn: 355267
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3851fbb96ae..fb03b4198c1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3784,8 +3784,7 @@ bool SelectionDAG::isBaseWithConstantOffset(SDValue Op) const { return false; if (Op.getOpcode() == ISD::OR && - !MaskedValueIsZero(Op.getOperand(0), - cast<ConstantSDNode>(Op.getOperand(1))->getAPIntValue())) + !MaskedValueIsZero(Op.getOperand(0), Op.getConstantOperandAPInt(1))) return false; return true; |