[Lldb-commits] [lldb] r137387 - /lldb/trunk/source/Symbol/ClangASTType.cpp

Johnny Chen johnny.chen at apple.com
Thu Aug 11 16:47:22 PDT 2011


Author: johnny
Date: Thu Aug 11 18:47:21 2011
New Revision: 137387

URL: http://llvm.org/viewvc/llvm-project?rev=137387&view=rev
Log:
Silence the static analyzer.

Modified:
    lldb/trunk/source/Symbol/ClangASTType.cpp

Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=137387&r1=137386&r2=137387&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Thu Aug 11 18:47:21 2011
@@ -945,17 +945,17 @@
                     case eFormatCharArray:
                     case eFormatBytes:
                     case eFormatBytesWithASCII:
-                        item_count = (byte_size * item_count);
+                        item_count = byte_size;
                         byte_size = 1; 
                         break;
 
                     case eFormatUnicode16:
-                        item_count = (byte_size * item_count) / 2; 
+                        item_count = byte_size / 2; 
                         byte_size = 2; 
                         break;
 
                     case eFormatUnicode32:
-                        item_count = (byte_size * item_count) / 4; 
+                        item_count = byte_size / 4; 
                         byte_size = 4; 
                         break;
                 }





More information about the lldb-commits mailing list