aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/AddrModeMatcher.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-28 12:30:07 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-28 12:30:07 +0000
commit245e9c4834ae8fee3dde3f5f1a77266ac14c1402 (patch)
treebc82b821cbfb436160b1234c32b88d0bc658d118 /lib/Transforms/Utils/AddrModeMatcher.cpp
parentf148cb6044b292234109938e0a3802fc2d637e84 (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.cpp2
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]);