1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Minor code cleanup /NFC

llvm-svn: 265025
This commit is contained in:
Xinliang David Li 2016-03-31 16:22:17 +00:00
parent 914aeadac2
commit d1a210f4d0

View File

@ -333,11 +333,13 @@ struct PGOIndirectCallSiteVisitor
PGOIndirectCallSiteVisitor() {}
void visitCallSite(CallSite CS) {
Instruction *I = CS.getInstruction();
CallInst *CI = dyn_cast<CallInst>(I);
if (CS.getCalledFunction() || !CS.getCalledValue() ||
(CI && CI->isInlineAsm()))
if (CS.getCalledFunction() || !CS.getCalledValue())
return;
Instruction *I = CS.getInstruction();
if (CallInst *CI = dyn_cast<CallInst>(I)) {
if (CI->isInlineAsm())
return;
}
IndirectCallInsts.push_back(I);
}
};