[llvm] 5fcecea - [llvm-diff] Modernize DiffEntry (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 19 07:56:48 PDT 2023
Author: Kazu Hirata
Date: 2023-08-19T07:56:35-07:00
New Revision: 5fcecea88b75907246a6af0fbf7baa12b50ddfb1
URL: https://github.com/llvm/llvm-project/commit/5fcecea88b75907246a6af0fbf7baa12b50ddfb1
DIFF: https://github.com/llvm/llvm-project/commit/5fcecea88b75907246a6af0fbf7baa12b50ddfb1.diff
LOG: [llvm-diff] Modernize DiffEntry (NFC)
Added:
Modified:
llvm/tools/llvm-diff/lib/DifferenceEngine.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-
diff /lib/DifferenceEngine.cpp b/llvm/tools/llvm-
diff /lib/DifferenceEngine.cpp
index 6573bf010c86a9..0d4d82e5cadd36 100644
--- a/llvm/tools/llvm-
diff /lib/DifferenceEngine.cpp
+++ b/llvm/tools/llvm-
diff /lib/DifferenceEngine.cpp
@@ -791,9 +791,9 @@ class FunctionDifferenceEngine {
};
struct DiffEntry {
- DiffEntry() : Cost(0) {}
+ DiffEntry() = default;
- unsigned Cost;
+ unsigned Cost = 0;
llvm::SmallVector<char, 8> Path; // actually of DifferenceEngine::DiffChange
};
More information about the llvm-commits
mailing list