| 9 | : Handler(std::move(Handler)) {} |
| 10 | |
| 11 | std::set<const Function *> TBAASimpleSolver::solve(const CallBase &CB) const { |
| 12 | const auto *CO = CB.getCalledOperand(); |
| 13 | if (!CO) |
| 14 | return {}; |
| 15 | |
| 16 | const auto *TBAA = |
| 17 | getTBAA(dyn_cast_or_null<Instruction>(CO->stripPointerCasts())); |
| 18 | if (!TBAA) |
| 19 | return {}; |
| 20 | |
| 21 | return Handler.get(TBAA, CO->getType()); |
| 22 | } |