We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1555e99 commit 107e2e2Copy full SHA for 107e2e2
1 file changed
lib/PhasarLLVM/ControlFlow/LLVMBasedBackwardICFG.cpp
@@ -86,16 +86,11 @@ std::set<const llvm::Instruction *>
86
LLVMBasedBackwardsICFG::getReturnSitesOfCallAt(
87
const llvm::Instruction *N) const {
88
std::set<const llvm::Instruction *> ReturnSites;
89
- if (const auto *Call = llvm::dyn_cast<llvm::CallInst>(N)) {
+ if (const auto *Call = llvm::dyn_cast<llvm::CallBase>(N)) {
90
for (const auto *Succ : this->getSuccsOf(Call)) {
91
ReturnSites.insert(Succ);
92
}
93
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
99
return ReturnSites;
100
101
0 commit comments