Try to appease VS 2015 warnings from http://reviews.llvm.org/D11890
authorYaron Keren <yaron.keren@gmail.com>
Sat, 15 Aug 2015 19:06:14 +0000 (19:06 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 15 Aug 2015 19:06:14 +0000 (19:06 +0000)
commitc118a5970bebf561b736cd9a641fb336dca15225
treeeab62728b2d069a30f313c012f088bb3b3b7c055
parent8e0b9c201b144f759b371d82e5669c053e9743b9
Try to appease VS 2015 warnings from reviews.llvm.org/D11890
ByteSize and BitSize should not be size_t but unsigned, considering

1) They are at most 2^16 and 2^19, respectively.
2) BitSize is an argument to Type::getIntNTy which takes unsigned.

Also, use the correct utostr instead itostr and cache the string result.

Thanks to James Touton for reporting this!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245167 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/ThreadSanitizer.cpp