aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/IR2Vec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Analysis/IR2Vec.cpp')
-rw-r--r--llvm/lib/Analysis/IR2Vec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IR2Vec.cpp b/llvm/lib/Analysis/IR2Vec.cpp
index 295b6d3..6885351 100644
--- a/llvm/lib/Analysis/IR2Vec.cpp
+++ b/llvm/lib/Analysis/IR2Vec.cpp
@@ -200,6 +200,8 @@ void Embedder::computeEmbeddings() const {
if (F.isDeclaration())
return;
+ FuncVector = Embedding(Dimension, 0.0);
+
// Consider only the basic blocks that are reachable from entry
for (const BasicBlock *BB : depth_first(&F)) {
computeEmbeddings(*BB);