llvm.org GIT mirror llvm / d4a2e32
Minor code cleanup /NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265025 91177308-0d34-0410-b5e6-96231b3b80d8 Xinliang David Li 4 years ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
332332 PGOIndirectCallSiteVisitor() {}
333333
334334 void visitCallSite(CallSite CS) {
335 if (CS.getCalledFunction() || !CS.getCalledValue())
336 return;
335337 Instruction *I = CS.getInstruction();
336 CallInst *CI = dyn_cast(I);
337 if (CS.getCalledFunction() || !CS.getCalledValue() ||
338 (CI && CI->isInlineAsm()))
339 return;
338 if (CallInst *CI = dyn_cast(I)) {
339 if (CI->isInlineAsm())
340 return;
341 }
340342 IndirectCallInsts.push_back(I);
341343 }
342344 };