[llvm] r286683 - Fix -Werror build with clang-cl.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 15:58:12 PST 2016


Author: zturner
Date: Fri Nov 11 17:58:11 2016
New Revision: 286683

URL: http://llvm.org/viewvc/llvm-project?rev=286683&view=rev
Log:
Fix -Werror build with clang-cl.

Modified:
    llvm/trunk/lib/IR/AsmWriter.cpp

Modified: llvm/trunk/lib/IR/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=286683&r1=286682&r2=286683&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AsmWriter.cpp (original)
+++ llvm/trunk/lib/IR/AsmWriter.cpp Fri Nov 11 17:58:11 2016
@@ -1330,7 +1330,7 @@ static void WriteConstantInternal(raw_os
     }
 
     for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) {
-      if (InRangeOp && (OI - CE->op_begin()) == *InRangeOp)
+      if (InRangeOp && unsigned(OI - CE->op_begin()) == *InRangeOp)
         Out << "inrange ";
       TypePrinter.print((*OI)->getType(), Out);
       Out << ' ';




More information about the llvm-commits mailing list