aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2024-04-24 15:03:13 +0800
committerJie Fu <jiefu@tencent.com>2024-04-24 15:03:13 +0800
commit806db47b060b6e70cc71ee5ce8052829f85e6469 (patch)
tree113f85f237cbe06ec6111a08de274c3ddcca270f /llvm/lib/IR/Verifier.cpp
parentcf328ff96daf5e676fb51ac86e550af7fd689fec (diff)
downloadllvm-806db47b060b6e70cc71ee5ce8052829f85e6469.zip
llvm-806db47b060b6e70cc71ee5ce8052829f85e6469.tar.gz
llvm-806db47b060b6e70cc71ee5ce8052829f85e6469.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index b998725..365bba8 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"}