Skip to content

Commit 2290ff5

Browse files
committed
Reinitialize Function Vectors
1 parent de9b3ca commit 2290ff5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Analysis/IR2Vec.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ void Embedder::computeEmbeddings() const {
200200
if (F.isDeclaration())
201201
return;
202202

203+
FuncVector = Embedding(Dimension, 0.0);
204+
203205
// Consider only the basic blocks that are reachable from entry
204206
for (const BasicBlock *BB : depth_first(&F)) {
205207
computeEmbeddings(*BB);

0 commit comments

Comments
 (0)