summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-08-05 21:25:49 +0000
committerGabor Greif <ggreif@gmail.com>2010-08-05 21:25:49 +0000
commit638c82321184b5bd644e3b5248354e9c4d59d786 (patch)
tree4e19cfb868a18a6ce266ffbbc38c03fc192a43de /llvm/lib
parenta21249597e021c197b0e9e4a59490a4159e82f2e (diff)
downloadbcm5719-llvm-638c82321184b5bd644e3b5248354e9c4d59d786.tar.gz
bcm5719-llvm-638c82321184b5bd644e3b5248354e9c4d59d786.zip
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 llvm-svn: 110380
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index e03cc827580..9e5fd239233 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud