]> granicus.if.org Git - clang/commitdiff
Fix build error caused by r290539.
authorMarina Yatsina <marina.yatsina@intel.com>
Mon, 26 Dec 2016 13:16:40 +0000 (13:16 +0000)
committerMarina Yatsina <marina.yatsina@intel.com>
Mon, 26 Dec 2016 13:16:40 +0000 (13:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index 50366222093f7fef740cb1656abd70294ca90f33..76de9e2993990c79a268ddb8af4e16c442b9372c 100644 (file)
@@ -164,9 +164,8 @@ getClobberConflictLocation(MultiExprArg Exprs, StringLiteral **Constraints,
                            const TargetInfo &Target, ASTContext &Cont) {
   llvm::StringSet<> InOutVars;
   // Collect all the input and output registers from the extended asm
-  // statement
-  // in order to check for conflicts with the clobber list
-  for (int i = 0; i < Exprs.size(); ++i) {
+  // statement in order to check for conflicts with the clobber list
+  for (unsigned int i = 0; i < Exprs.size(); ++i) {
     StringRef Constraint = Constraints[i]->getString();
     StringRef InOutReg = Target.getConstraintRegister(
         Constraint, extractRegisterName(Exprs[i], Target));