[llvm-branch-commits] [llvm-branch] r100293 - /llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
Gabor Greif
ggreif at gmail.com
Sat Apr 3 15:10:28 PDT 2010
Author: ggreif
Date: Sat Apr 3 17:10:28 2010
New Revision: 100293
URL: http://llvm.org/viewvc/llvm-project?rev=100293&view=rev
Log:
fix the calle getter in CallSiteBase
note that this is now coinciding with arg_end()
also, CallSiteBase does not take advantage of the
fast accessors at all, because a cast to the concrete
class is not performed. We have to fix this!
Modified:
llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
Modified: llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h?rev=100293&r1=100292&r2=100293&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h (original)
+++ llvm/branches/ggreif/CallInst-operands/include/llvm/Support/CallSite.h Sat Apr 3 17:10:28 2010
@@ -168,7 +168,7 @@
// of the op_*() functions here. See CallSite::getCallee.
//
if (isCall())
- return getInstruction()->op_begin(); // Unchanged (ATM)
+ return getInstruction()->op_end() - 1; // Skip Function
else
return getInstruction()->op_end() - 3; // Skip BB, BB, Function
}
More information about the llvm-branch-commits
mailing list