summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-07 09:43:45 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-07 09:43:45 +0000
commit90e80efe6b533505c5bdaf52cd8ae2108e7382d6 (patch)
treee2eea9bae01aab247b73202b3163a825697e1083
parent59d9a5c209cded7ecf78249efbcfd5a20042a26f (diff)
downloadbcm5719-llvm-90e80efe6b533505c5bdaf52cd8ae2108e7382d6.tar.gz
bcm5719-llvm-90e80efe6b533505c5bdaf52cd8ae2108e7382d6.zip
conditionalize on CallInst::ArgOffset
llvm-svn: 107766
-rw-r--r--llvm/include/llvm/Support/CallSite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CallSite.h b/llvm/include/llvm/Support/CallSite.h
index 6333a782e0d..38ee08bedf8 100644
--- a/llvm/include/llvm/Support/CallSite.h
+++ b/llvm/include/llvm/Support/CallSite.h
@@ -256,14 +256,14 @@ private:
/// Returns the operand number of the first argument
unsigned getArgumentOffset() const {
if (isCall())
- return 1; // Skip Function (ATM)
+ return CallInst::ArgOffset; // Skip Function (ATM)
else
return 0; // Args are at the front
}
unsigned getArgumentEndOffset() const {
if (isCall())
- return 0; // Unchanged (ATM)
+ return CallInst::ArgOffset ? 0 : 1; // Unchanged (ATM)
else
return 3; // Skip BB, BB, Function
}
OpenPOWER on IntegriCloud