mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
remove the private hack from CallInst, it was not supposed to hit the branch anyway
as a positive consequence the CallSite::getCallee() methods now can be rewritten to be a bit more efficient git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -33,7 +33,7 @@ using namespace llvm;
|
||||
User::op_iterator CallSite::getCallee() const {
|
||||
Instruction *II(getInstruction());
|
||||
return isCall()
|
||||
? cast</*FIXME: CallInst*/User>(II)->op_end() - 1 // Skip Callee
|
||||
? cast<CallInst>(II)->op_end() - 1 // Skip Callee
|
||||
: cast<InvokeInst>(II)->op_end() - 3; // Skip BB, BB, Callee
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user