[llvm-commits] [llvm] r107003 - /llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp

Gabor Greif ggreif at gmail.com
Mon Jun 28 05:30:07 PDT 2010


Author: ggreif
Date: Mon Jun 28 07:30:07 2010
New Revision: 107003

URL: http://llvm.org/viewvc/llvm-project?rev=107003&view=rev
Log:
use CallInst::ArgOffset

Modified:
    llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp

Modified: llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp?rev=107003&r1=107002&r2=107003&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp Mon Jun 28 07:30:07 2010
@@ -382,7 +382,7 @@
   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]);
     





More information about the llvm-commits mailing list