mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Commit more code over to new cast style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -38,10 +38,8 @@ void CallGraph::addToCallGraph(Method *M) {
|
||||
|
||||
for (Method::inst_iterator II = M->inst_begin(), IE = M->inst_end();
|
||||
II != IE; ++II) {
|
||||
if (II->getOpcode() == Instruction::Call) {
|
||||
CallInst *CI = (CallInst*)*II;
|
||||
if (CallInst *CI = dyn_cast<CallInst>(*II))
|
||||
Node->addCalledMethod(getNodeFor(CI->getCalledMethod()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user