diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-08-05 21:25:49 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-08-05 21:25:49 +0000 |
commit | 3ecf355c7a6f6f559f3c85b46d041ffda5163a8c (patch) | |
tree | 9a18a7e854a4ff888e6f26cb0380c658f4b0dca7 /lib | |
parent | 9850a288664087875c7c35bec8c92b72a72ac142 (diff) | |
download | external_llvm-3ecf355c7a6f6f559f3c85b46d041ffda5163a8c.zip external_llvm-3ecf355c7a6f6f559f3c85b46d041ffda5163a8c.tar.gz external_llvm-3ecf355c7a6f6f559f3c85b46d041ffda5163a8c.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index e03cc82..9e5fd23 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -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 } |