mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Use isa<> instead of dyn_cast<> with unused value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1211,9 +1211,9 @@ SDValue R600TargetLowering::LowerLOAD(SDValue Op, SelectionDAG &DAG) const
|
|||||||
int ConstantBlock = ConstantAddressBlock(LoadNode->getAddressSpace());
|
int ConstantBlock = ConstantAddressBlock(LoadNode->getAddressSpace());
|
||||||
if (ConstantBlock > -1 && LoadNode->getExtensionType() != ISD::SEXTLOAD) {
|
if (ConstantBlock > -1 && LoadNode->getExtensionType() != ISD::SEXTLOAD) {
|
||||||
SDValue Result;
|
SDValue Result;
|
||||||
if (dyn_cast<ConstantExpr>(LoadNode->getSrcValue()) ||
|
if (isa<ConstantExpr>(LoadNode->getSrcValue()) ||
|
||||||
dyn_cast<Constant>(LoadNode->getSrcValue()) ||
|
isa<Constant>(LoadNode->getSrcValue()) ||
|
||||||
dyn_cast<ConstantSDNode>(Ptr)) {
|
isa<ConstantSDNode>(Ptr)) {
|
||||||
SDValue Slots[4];
|
SDValue Slots[4];
|
||||||
for (unsigned i = 0; i < 4; i++) {
|
for (unsigned i = 0; i < 4; i++) {
|
||||||
// We want Const position encoded with the following formula :
|
// We want Const position encoded with the following formula :
|
||||||
|
Reference in New Issue
Block a user