conditionalize on CallInst::ArgOffset

llvm-svn: 107766
This commit is contained in:
Gabor Greif 2010-07-07 09:43:45 +00:00
parent 59d9a5c209
commit 90e80efe6b
1 changed files with 2 additions and 2 deletions

View File

@ -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
}