MCPcopy Create free account
hub / github.com/Samsung/UTopia / solve

Method solve

lib/indcallsolver/TestTypeVirtSolver.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 : Handler(std::move(Handler)) {}
13
14std::set<const llvm::Function *>
15TestTypeVirtSolver::solve(const CallBase &CB) const {
16 const auto *CO = CB.getCalledOperand();
17 if (!CO)
18 return {};
19
20 const auto *I = dyn_cast_or_null<Instruction>(CO->stripPointerCasts());
21 const auto *TBAA = getTBAA(I);
22 if (!TBAA || !TBAA->isTBAAVtableAccess())
23 return {};
24
25 return Handler.get(I);
26}

Callers

nothing calls this directly

Calls 2

getTBAAFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected