[llvm-branch-commits] [llvm-branch] r100861 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp

Gabor Greif ggreif at gmail.com
Fri Apr 9 08:07:01 PDT 2010


Author: ggreif
Date: Fri Apr  9 10:07:01 2010
New Revision: 100861

URL: http://llvm.org/viewvc/llvm-project?rev=100861&view=rev
Log:
shift inline assembly operands

Modified:
    llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp

Modified: llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp?rev=100861&r1=100860&r2=100861&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Transforms/Utils/AddrModeMatcher.cpp Fri Apr  9 10:07:01 2010
@@ -382,7 +382,7 @@
   std::vector<InlineAsm::ConstraintInfo>
   Constraints = IA->ParseConstraints();
   
-  unsigned ArgNo = 1;   // ArgNo - The operand of the CallInst.
+  unsigned ArgNo = 0;   // ArgNo - The operand of the CallInst.
   for (unsigned i = 0, e = Constraints.size(); i != e; ++i) {
     TargetLowering::AsmOperandInfo OpInfo(Constraints[i]);
     
@@ -448,7 +448,7 @@
     
     if (CallInst *CI = dyn_cast<CallInst>(*UI)) {
       InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue());
-      if (IA == 0) return true;
+      if (!IA) return true;
       
       // If this is a memory operand, we're cool, otherwise bail out.
       if (!IsOperandAMemoryOperand(CI, IA, I, TLI))





More information about the llvm-branch-commits mailing list