Skip to content

Commit c6623d7

Browse files
author
Andres Madrid Ucha
committed
GDA: cleanup devirtualizedCalls
It seems like the logic for processing devirtualizedCalls was removed on previous commits but somehow we were still inserting pairs into the vector for no good reason.
1 parent 19cab50 commit c6623d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/CheerpUtils/GlobalDepsAnalyzer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,6 @@ bool GlobalDepsAnalyzer::runOnModule( llvm::Module & module )
10621062

10631063
//Check agains the previous set what CallInstruction are actually impossible (and remove them)
10641064
std::vector<llvm::CallBase*> unreachList;
1065-
std::vector<std::pair<llvm::CallBase*, llvm::Function*> > devirtualizedCalls;
10661065

10671066
//Fixing function casts implies that new functions types will be created
10681067
//Exporting the table implies that functions can be added outside of our control
@@ -1104,7 +1103,6 @@ bool GlobalDepsAnalyzer::runOnModule( llvm::Module & module )
11041103
// Always an asmjs functions, thus it is ok to perform ptr to int conversions
11051104
replaceCallOfBitCastWithBitCastOfCall(*ci, false, true);
11061105

1107-
devirtualizedCalls.push_back({ci, toBeCalledFunc});
11081106
}
11091107
else
11101108
{

0 commit comments

Comments
 (0)