[llvm] 7c80747 - Fix unused variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 03:45:38 PDT 2023
Author: Simon Pilgrim
Date: 2023-06-06T11:45:22+01:00
New Revision: 7c80747d3340870cc1686e090639f2afed0ba14d
URL: https://github.com/llvm/llvm-project/commit/7c80747d3340870cc1686e090639f2afed0ba14d
DIFF: https://github.com/llvm/llvm-project/commit/7c80747d3340870cc1686e090639f2afed0ba14d.diff
LOG: Fix unused variable warning. NFC.
Added:
Modified:
llvm/utils/TableGen/SearchableTableEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/SearchableTableEmitter.cpp b/llvm/utils/TableGen/SearchableTableEmitter.cpp
index 4d547c54c4705..b6af02c28a806 100644
--- a/llvm/utils/TableGen/SearchableTableEmitter.cpp
+++ b/llvm/utils/TableGen/SearchableTableEmitter.cpp
@@ -174,7 +174,7 @@ class SearchableTableEmitter {
"' lookup method '" + Index.Name +
"', key field '" + Field.Name +
"' of type bits is too large");
- } else if (BitRecTy *BI = dyn_cast<BitRecTy>(Field.RecType)) {
+ } else if (isa<BitRecTy>(Field.RecType)) {
return "bool";
} else if (Field.Enum || Field.IsIntrinsic || Field.IsInstruction)
return "unsigned";
More information about the llvm-commits
mailing list