diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-07 09:43:45 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-07 09:43:45 +0000 |
| commit | 90e80efe6b533505c5bdaf52cd8ae2108e7382d6 (patch) | |
| tree | e2eea9bae01aab247b73202b3163a825697e1083 | |
| parent | 59d9a5c209cded7ecf78249efbcfd5a20042a26f (diff) | |
| download | bcm5719-llvm-90e80efe6b533505c5bdaf52cd8ae2108e7382d6.tar.gz bcm5719-llvm-90e80efe6b533505c5bdaf52cd8ae2108e7382d6.zip | |
conditionalize on CallInst::ArgOffset
llvm-svn: 107766
| -rw-r--r-- | llvm/include/llvm/Support/CallSite.h | 4 |
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 } |

