diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-01 17:39:26 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-11-01 17:39:26 +0000 |
| commit | ef1a950b48bca4275ba5d9ae27d80d64414492c5 (patch) | |
| tree | 7932b751737e6b927a3e98121fdf2a6275de5f7c | |
| parent | c5e1b16d0c55a58b981b33251a1b7f5c3454173e (diff) | |
| download | bcm5719-llvm-ef1a950b48bca4275ba5d9ae27d80d64414492c5.tar.gz bcm5719-llvm-ef1a950b48bca4275ba5d9ae27d80d64414492c5.zip | |
Use isa<> instead of dyn_cast<> with unused value
llvm-svn: 193869
| -rw-r--r-- | llvm/lib/Target/R600/R600ISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.cpp b/llvm/lib/Target/R600/R600ISelLowering.cpp index 090ab85c675..a7522b2771b 100644 --- a/llvm/lib/Target/R600/R600ISelLowering.cpp +++ b/llvm/lib/Target/R600/R600ISelLowering.cpp @@ -1211,9 +1211,9 @@ SDValue R600TargetLowering::LowerLOAD(SDValue Op, SelectionDAG &DAG) const int ConstantBlock = ConstantAddressBlock(LoadNode->getAddressSpace()); if (ConstantBlock > -1 && LoadNode->getExtensionType() != ISD::SEXTLOAD) { SDValue Result; - if (dyn_cast<ConstantExpr>(LoadNode->getSrcValue()) || - dyn_cast<Constant>(LoadNode->getSrcValue()) || - dyn_cast<ConstantSDNode>(Ptr)) { + if (isa<ConstantExpr>(LoadNode->getSrcValue()) || + isa<Constant>(LoadNode->getSrcValue()) || + isa<ConstantSDNode>(Ptr)) { SDValue Slots[4]; for (unsigned i = 0; i < 4; i++) { // We want Const position encoded with the following formula : |

