summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/R600ISelLowering.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-05-12 20:42:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-05-12 20:42:57 +0000
commit37c12d7343f8a04b237d30a2b3bf57d51448868c (patch)
treef653b95edc3b6d2457efe8314e3a7efed4ffce43 /llvm/lib/Target/R600/R600ISelLowering.cpp
parentb57c0990bc5838f76ce6a3edf4f2c105013361e7 (diff)
downloadbcm5719-llvm-37c12d7343f8a04b237d30a2b3bf57d51448868c.tar.gz
bcm5719-llvm-37c12d7343f8a04b237d30a2b3bf57d51448868c.zip
Use cast<> for unchecked use
llvm-svn: 208627
Diffstat (limited to 'llvm/lib/Target/R600/R600ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/R600ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.cpp b/llvm/lib/Target/R600/R600ISelLowering.cpp
index 60b42fb9d0b..489565e6579 100644
--- a/llvm/lib/Target/R600/R600ISelLowering.cpp
+++ b/llvm/lib/Target/R600/R600ISelLowering.cpp
@@ -1829,7 +1829,7 @@ FoldOperand(SDNode *ParentNode, unsigned SrcIdx, SDValue &Src, SDValue &Neg,
}
}
- ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(CstOffset);
+ ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
Consts.push_back(Cst->getZExtValue());
if (!TII->fitsConstReadLimitations(Consts)) {
return false;
OpenPOWER on IntegriCloud