summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-08-23 00:27:57 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-08-23 00:27:57 +0000
commit5aa7bd7d624427d9b6e4f7dd3b09be4307ac599d (patch)
tree9f04df2f30aa8a12f90cdae8381cef856f9adf55 /llvm
parentce536a596b745c4d2b8ac9b9fcdd91426f8562a8 (diff)
downloadbcm5719-llvm-5aa7bd7d624427d9b6e4f7dd3b09be4307ac599d.tar.gz
bcm5719-llvm-5aa7bd7d624427d9b6e4f7dd3b09be4307ac599d.zip
Do not use dyn_cast<> after isa<>
Reported by coverity. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 245799
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 53d07b385e3..ab3a6631d33 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -12278,7 +12278,7 @@ static SDValue combineConcatVectorOfExtracts(SDNode *N, SelectionDAG &DAG) {
EVT ExtVT = ExtVec.getValueType();
if (!isa<ConstantSDNode>(Op.getOperand(1)))
return SDValue();
- int ExtIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
+ int ExtIdx = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
// Ensure that we are extracting a subvector from a vector the same
// size as the result.
OpenPOWER on IntegriCloud