aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-28 16:14:53 -0700
committerGitHub <noreply@github.com>2025-10-28 16:14:53 -0700
commit75ddf2a2fcd43b0317f8806ca6355cb73887458e (patch)
tree95ceee26e3601c5434e5f26b6aa365debfb10243
parentb2b2c52de52835f8c684b0757012c7ce71e9a3f4 (diff)
downloadllvm-75ddf2a2fcd43b0317f8806ca6355cb73887458e.zip
llvm-75ddf2a2fcd43b0317f8806ca6355cb73887458e.tar.gz
llvm-75ddf2a2fcd43b0317f8806ca6355cb73887458e.tar.bz2
[Analysis] Use "= default" in a constructor (NFC) (#165395)
Note that all of the members are properly initialized a few lines above the constructor.
-rw-r--r--llvm/include/llvm/Analysis/IR2Vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/IR2Vec.h b/llvm/include/llvm/Analysis/IR2Vec.h
index 5ad6288..71055dd16 100644
--- a/llvm/include/llvm/Analysis/IR2Vec.h
+++ b/llvm/include/llvm/Analysis/IR2Vec.h
@@ -161,7 +161,7 @@ private:
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);