From: Craig Topper Date: Mon, 11 Mar 2019 16:51:37 +0000 (+0000) Subject: [TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1063a019c3fb9517389a06ad3cff4444ffa36cc7;p=llvm [TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced in r355785. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355837 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelMatcher.cpp b/utils/TableGen/DAGISelMatcher.cpp index b2d819cae9e..bebd205ad58 100644 --- a/utils/TableGen/DAGISelMatcher.cpp +++ b/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); }