Silence the static analyzer.

llvm-svn: 137387
This commit is contained in:
Johnny Chen 2011-08-11 23:47:21 +00:00
parent 7b8cc7e938
commit ec34c6aba5
1 changed files with 3 additions and 3 deletions

View File

@ -945,17 +945,17 @@ ClangASTType::DumpTypeValue
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;
}