[llvm] b56ef75 - [llvm-reduce] Fix unused variable warning (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 02:08:40 PDT 2022
Author: Nikita Popov
Date: 2022-10-07T11:08:25+02:00
New Revision: b56ef7519f41a051959d2dec3285f158780262a7
URL: https://github.com/llvm/llvm-project/commit/b56ef7519f41a051959d2dec3285f158780262a7
DIFF: https://github.com/llvm/llvm-project/commit/b56ef7519f41a051959d2dec3285f158780262a7.diff
LOG: [llvm-reduce] Fix unused variable warning (NFC)
Added:
Modified:
llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp b/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp
index e72dc2c80f46b..f874a48b43062 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceDIMetadata.cpp
@@ -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;
More information about the llvm-commits
mailing list