diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-28 12:30:07 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-28 12:30:07 +0000 |
commit | 245e9c4834ae8fee3dde3f5f1a77266ac14c1402 (patch) | |
tree | bc82b821cbfb436160b1234c32b88d0bc658d118 /lib/Transforms/Utils/AddrModeMatcher.cpp | |
parent | f148cb6044b292234109938e0a3802fc2d637e84 (diff) |
use CallInst::ArgOffset
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/AddrModeMatcher.cpp')
-rw-r--r-- | lib/Transforms/Utils/AddrModeMatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/AddrModeMatcher.cpp b/lib/Transforms/Utils/AddrModeMatcher.cpp index 7b050e35ef..ce5472eb9b 100644 --- a/lib/Transforms/Utils/AddrModeMatcher.cpp +++ b/lib/Transforms/Utils/AddrModeMatcher.cpp @@ -382,7 +382,7 @@ static bool IsOperandAMemoryOperand(CallInst *CI, InlineAsm *IA, Value *OpVal, std::vector<InlineAsm::ConstraintInfo> Constraints = IA->ParseConstraints(); - unsigned ArgNo = 1; // ArgNo - The operand of the CallInst. + unsigned ArgNo = CallInst::ArgOffset; // ArgNo - The operand of the CallInst. for (unsigned i = 0, e = Constraints.size(); i != e; ++i) { TargetLowering::AsmOperandInfo OpInfo(Constraints[i]); |