[llvm] 806db47 - [IR] Remove unused variable in Verifier.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 00:04:21 PDT 2024
Author: Jie Fu
Date: 2024-04-24T15:03:13+08:00
New Revision: 806db47b060b6e70cc71ee5ce8052829f85e6469
URL: https://github.com/llvm/llvm-project/commit/806db47b060b6e70cc71ee5ce8052829f85e6469
DIFF: https://github.com/llvm/llvm-project/commit/806db47b060b6e70cc71ee5ce8052829f85e6469.diff
LOG: [IR] Remove unused variable in Verifier.cpp (NFC)
llvm-project/llvm/lib/IR/Verifier.cpp:4854:14:
error: unused variable 'IsLeaf' [-Werror,-Wunused-variable]
const auto IsLeaf = [](const Metadata *CurMD) {
^
1 error generated.
Added:
Modified:
llvm/lib/IR/Verifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index b99872554ee8de..365bba8e0b2ff8 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -4851,13 +4851,6 @@ void Verifier::visitMMRAMetadata(Instruction &I, MDNode *MD) {
Check(canInstructionHaveMMRAs(I),
"!mmra metadata attached to unexpected instruction kind", I, MD);
- const auto IsLeaf = [](const Metadata *CurMD) {
- const MDNode *Tuple = dyn_cast<MDTuple>(CurMD);
- return Tuple && Tuple->getNumOperands() == 2 &&
- isa<MDString>(Tuple->getOperand(0)) &&
- isa<MDString>(Tuple->getOperand(1));
- };
-
// MMRA Metadata should either be a tag, e.g. !{!"foo", !"bar"}, or a
// list of tags such as !2 in the following example:
// !0 = !{!"a", !"b"}
More information about the llvm-commits
mailing list