Simplify code to process CallSites (thanks to Chris).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-03-12 16:20:49 +00:00
parent a24653cdfc
commit 85f5e11c06

View File

@ -91,10 +91,8 @@ bool AAEval::runOnFunction(Function &F) {
}
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
if (CallInst *CI = dyn_cast<CallInst>(*I))
CallSites.insert(CallSite(CI));
else if (InvokeInst *II = dyn_cast<InvokeInst>(*I))
CallSites.insert(CallSite(II));
CallSite CS = CallSite::get(*I);
if (CS.getInstruction()) CallSites.insert(CS);
}
if (PrintNoAlias || PrintMayAlias || PrintMustAlias ||