Skip to content

Commit 806db47

Browse files
committed
[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.
1 parent cf328ff commit 806db47

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4851,13 +4851,6 @@ void Verifier::visitMMRAMetadata(Instruction &I, MDNode *MD) {
48514851
Check(canInstructionHaveMMRAs(I),
48524852
"!mmra metadata attached to unexpected instruction kind", I, MD);
48534853

4854-
const auto IsLeaf = [](const Metadata *CurMD) {
4855-
const MDNode *Tuple = dyn_cast<MDTuple>(CurMD);
4856-
return Tuple && Tuple->getNumOperands() == 2 &&
4857-
isa<MDString>(Tuple->getOperand(0)) &&
4858-
isa<MDString>(Tuple->getOperand(1));
4859-
};
4860-
48614854
// MMRA Metadata should either be a tag, e.g. !{!"foo", !"bar"}, or a
48624855
// list of tags such as !2 in the following example:
48634856
// !0 = !{!"a", !"b"}

0 commit comments

Comments
 (0)