Skip to content

Commit 107e2e2

Browse files
author
Martin Mory
committed
merge CallInst and InvokeInst to CallBase in LLVMBasedBackwardsICFG::getReturnSitesOfCallAt
1 parent 1555e99 commit 107e2e2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/PhasarLLVM/ControlFlow/LLVMBasedBackwardICFG.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,11 @@ std::set<const llvm::Instruction *>
8686
LLVMBasedBackwardsICFG::getReturnSitesOfCallAt(
8787
const llvm::Instruction *N) const {
8888
std::set<const llvm::Instruction *> ReturnSites;
89-
if (const auto *Call = llvm::dyn_cast<llvm::CallInst>(N)) {
89+
if (const auto *Call = llvm::dyn_cast<llvm::CallBase>(N)) {
9090
for (const auto *Succ : this->getSuccsOf(Call)) {
9191
ReturnSites.insert(Succ);
9292
}
9393
}
94-
if (const auto *Invoke = llvm::dyn_cast<llvm::InvokeInst>(N)) {
95-
for (const auto *Succ : this->getSuccsOf(Invoke)) {
96-
ReturnSites.insert(Succ);
97-
}
98-
}
9994
return ReturnSites;
10095
}
10196

0 commit comments

Comments
 (0)