[Lldb-commits] [lldb] r264849 - Fix warning in ThreadSanitizerRuntime

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 30 02:43:01 PDT 2016


Author: labath
Date: Wed Mar 30 04:42:59 2016
New Revision: 264849

URL: http://llvm.org/viewvc/llvm-project?rev=264849&view=rev
Log:
Fix warning in ThreadSanitizerRuntime

Modified:
    lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp

Modified: lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp?rev=264849&r1=264848&r2=264849&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp Wed Mar 30 04:42:59 2016
@@ -287,7 +287,7 @@ ConvertToStructuredArray(ValueObjectSP r
     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();
         




More information about the lldb-commits mailing list