summaryrefslogtreecommitdiff
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
commit8655b1266f110dbb7802b4325ed61f27c647df30 (patch)
tree591f1ac3a6895a727f8bb0442c8c349939c8e351
parentd2b27bba87a9e2d82d1974e45002aa32eeec4662 (diff)
downloadllvm-8655b1266f110dbb7802b4325ed61f27c647df30.tar.gz
llvm-8655b1266f110dbb7802b4325ed61f27c647df30.tar.bz2
llvm-8655b1266f110dbb7802b4325ed61f27c647df30.tar.xz
Use cast<> for unchecked use
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208627 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/R600/R600ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/R600ISelLowering.cpp b/lib/Target/R600/R600ISelLowering.cpp
index 60b42fb9d0..489565e657 100644
--- a/lib/Target/R600/R600ISelLowering.cpp
+++ b/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;