1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[TableGen] Replace a dyn_cast with isa to avoid an unused variable warning introduced in r355785. NFC

llvm-svn: 355837
This commit is contained in:
Craig Topper 2019-03-11 16:51:37 +00:00
parent c17ae456cc
commit b9b16d334d

View File

@ -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<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);
}