Fix warning in ThreadSanitizerRuntime
authorPavel Labath <labath@google.com>
Wed, 30 Mar 2016 09:42:59 +0000 (09:42 +0000)
committerPavel Labath <labath@google.com>
Wed, 30 Mar 2016 09:42:59 +0000 (09:42 +0000)
llvm-svn: 264849

lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp

index c6ee6af..cc016ea 100644 (file)
@@ -287,7 +287,7 @@ ConvertToStructuredArray(ValueObjectSP return_value_sp, std::string items_name,
     StructuredData::Array *array = new StructuredData::Array();
     unsigned int count = return_value_sp->GetValueForExpressionPath(count_name.c_str())->GetValueAsUnsigned(0);
     ValueObjectSP objects = return_value_sp->GetValueForExpressionPath(items_name.c_str());
-    for (int i = 0; i < count; i++) {
+    for (unsigned int i = 0; i < count; i++) {
         ValueObjectSP o = objects->GetChildAtIndex(i, true);
         StructuredData::Dictionary *dict = new StructuredData::Dictionary();