Skip to content

Commit

Permalink
[llvm-reduce] Fix unused variable warning (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Oct 7, 2022
1 parent 97bb709 commit b56ef75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp
Expand Up @@ -66,7 +66,7 @@ void identifyUninterestingMDNodes(Oracle &O, MDNodeList &MDs) {
SmallVector<Metadata *, 16> TN;
for (size_t I = 0; I < Tup->getNumOperands(); ++I) {
// Ignore any operands that are not DebugInfo metadata nodes.
if (MDNode *OMD = dyn_cast_or_null<DINode>(Tup->getOperand(I)))
if (isa_and_nonnull<DINode>(Tup->getOperand(I)))
// Don't add uninteresting operands to the tuple.
if (!O.shouldKeep())
continue;
Expand Down

0 comments on commit b56ef75

Please sign in to comment.