We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed537a3 commit 1c9a1ddCopy full SHA for 1c9a1dd
lib/SVF-FE/CPPUtil.cpp
@@ -263,6 +263,10 @@ bool cppUtil::isVirtualCallSite(CallSite cs)
263
if (cs.getCalledFunction() != nullptr || cs.arg_empty())
264
return false;
265
266
+ // the first argument (this pointer) must be a pointer type and must be a class name
267
+ if (cs.getArgOperand(0)->getType()->isPointerTy() == false)
268
+ return false;
269
+
270
const Value *vfunc = cs.getCalledValue();
271
if (const LoadInst *vfuncloadinst = SVFUtil::dyn_cast<LoadInst>(vfunc))
272
{
0 commit comments