summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-16 20:23:12 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-16 20:23:12 +0000
commitb6b61dfb15294005e72aa966e5157be1d32b7adc (patch)
tree7082c1258a70adfcc8603439f698f76a584de1c5 /llvm/lib
parentcbf82cceacf401ccdc6087d6935b65e350af19ad (diff)
downloadbcm5719-llvm-b6b61dfb15294005e72aa966e5157be1d32b7adc.tar.gz
bcm5719-llvm-b6b61dfb15294005e72aa966e5157be1d32b7adc.zip
[DAGCombiner] Use cast instead of an unchecked dyn_cast.
llvm-svn: 318450
Diffstat (limited to 'llvm/lib')
-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 0d397b71d87..7588c9fe8d1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -6631,7 +6631,7 @@ SDValue DAGCombiner::visitMGATHER(SDNode *N) {
if (Level >= AfterLegalizeTypes)
return SDValue();
- MaskedGatherSDNode *MGT = dyn_cast<MaskedGatherSDNode>(N);
+ MaskedGatherSDNode *MGT = cast<MaskedGatherSDNode>(N);
SDValue Mask = MGT->getMask();
SDLoc DL(N);
OpenPOWER on IntegriCloud