summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-01 17:39:26 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-01 17:39:26 +0000
commit7a59defe70257302e2f68daba2fb8e1735e7cd0e (patch)
tree0d807a19b23ff04414442b73d607691e4e52f167 /lib
parent13034b43ef4c08b2ae46bf5d5db224fb44eeaf2b (diff)
downloadllvm-7a59defe70257302e2f68daba2fb8e1735e7cd0e.tar.gz
llvm-7a59defe70257302e2f68daba2fb8e1735e7cd0e.tar.bz2
llvm-7a59defe70257302e2f68daba2fb8e1735e7cd0e.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/R600ISelLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/R600/R600ISelLowering.cpp b/lib/Target/R600/R600ISelLowering.cpp
index 090ab85c67..a7522b2771 100644
--- a/lib/Target/R600/R600ISelLowering.cpp
+++ b/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 :