[llvm] 75ddf2a - [Analysis] Use "= default" in a constructor (NFC) (#165395)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 16:14:57 PDT 2025
Author: Kazu Hirata
Date: 2025-10-28T16:14:53-07:00
New Revision: 75ddf2a2fcd43b0317f8806ca6355cb73887458e
URL: https://github.com/llvm/llvm-project/commit/75ddf2a2fcd43b0317f8806ca6355cb73887458e
DIFF: https://github.com/llvm/llvm-project/commit/75ddf2a2fcd43b0317f8806ca6355cb73887458e.diff
LOG: [Analysis] Use "= default" in a constructor (NFC) (#165395)
Note that all of the members are properly initialized a few lines
above the constructor.
Added:
Modified:
llvm/include/llvm/Analysis/IR2Vec.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/IR2Vec.h b/llvm/include/llvm/Analysis/IR2Vec.h
index 5ad62880a779c..71055dd16a378 100644
--- a/llvm/include/llvm/Analysis/IR2Vec.h
+++ b/llvm/include/llvm/Analysis/IR2Vec.h
@@ -161,7 +161,7 @@ class VocabStorage {
public:
/// Default constructor creates empty storage (invalid state)
- VocabStorage() : Sections(), TotalSize(0), Dimension(0) {}
+ VocabStorage() = default;
/// Create a VocabStorage with pre-organized section data
VocabStorage(std::vector<std::vector<Embedding>> &&SectionData);
More information about the llvm-commits
mailing list