[llvm] r355837 - [TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced in r355785. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 09:51:37 PDT 2019
Author: ctopper
Date: Mon Mar 11 09:51:37 2019
New Revision: 355837
URL: http://llvm.org/viewvc/llvm-project?rev=355837&view=rev
Log:
[TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced in r355785. NFC
Modified:
llvm/trunk/utils/TableGen/DAGISelMatcher.cpp
Modified: llvm/trunk/utils/TableGen/DAGISelMatcher.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcher.cpp?rev=355837&r1=355836&r2=355837&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcher.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcher.cpp Mon Mar 11 09:51:37 2019
@@ -414,14 +414,10 @@ bool CheckValueTypeMatcher::isContradict
bool CheckImmAllOnesVMatcher::isContradictoryImpl(const Matcher *M) const {
// AllZeros is contradictory.
- if (const auto *CIAZVM = dyn_cast<CheckImmAllZerosVMatcher>(M))
- return true;
- return false;
+ return isa<CheckImmAllZerosVMatcher>(M);
}
bool CheckImmAllZerosVMatcher::isContradictoryImpl(const Matcher *M) const {
// AllOnes is contradictory.
- if (const auto *CIAOVM = dyn_cast<CheckImmAllOnesVMatcher>(M))
- return true;
- return false;
+ return isa<CheckImmAllOnesVMatcher>(M);
}
More information about the llvm-commits
mailing list