From 81d1656514d07b6b6fc760c950c4bc719c6e728f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 11 Mar 2019 16:51:37 +0000 Subject: [PATCH] [TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced in r355785. NFC llvm-svn: 355837 --- llvm/utils/TableGen/DAGISelMatcher.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/llvm/utils/TableGen/DAGISelMatcher.cpp b/llvm/utils/TableGen/DAGISelMatcher.cpp index b2d819c..bebd205 100644 --- a/llvm/utils/TableGen/DAGISelMatcher.cpp +++ b/llvm/utils/TableGen/DAGISelMatcher.cpp @@ -414,14 +414,10 @@ bool CheckValueTypeMatcher::isContradictoryImpl(const Matcher *M) const { bool CheckImmAllOnesVMatcher::isContradictoryImpl(const Matcher *M) const { // AllZeros is contradictory. - if (const auto *CIAZVM = dyn_cast(M)) - return true; - return false; + return isa(M); } bool CheckImmAllZerosVMatcher::isContradictoryImpl(const Matcher *M) const { // AllOnes is contradictory. - if (const auto *CIAOVM = dyn_cast(M)) - return true; - return false; + return isa(M); } -- 2.7.4