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 | 2c8382da2674b1e91d7f9ea590e38f4a00a82e1d (patch) | |
| tree | ea0c0f3f32e2a15876bbcc2909fa0a0b334de620 | |
| parent | ce5e922a3b45ed5e0c5b058889a452b3243b4c26 (diff) | |
| download | external_llvm-2c8382da2674b1e91d7f9ea590e38f4a00a82e1d.zip external_llvm-2c8382da2674b1e91d7f9ea590e38f4a00a82e1d.tar.gz external_llvm-2c8382da2674b1e91d7f9ea590e38f4a00a82e1d.tar.bz2 | |
conditionalize on CallInst::ArgOffset
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107766 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/Support/CallSite.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/CallSite.h b/include/llvm/Support/CallSite.h index 6333a78..38ee08b 100644 --- a/include/llvm/Support/CallSite.h +++ b/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 } |
