[sanitizer] Fix check failure in SizeClassMap::Print.

llvm-svn: 176338
This commit is contained in:
Evgeniy Stepanov 2013-03-01 08:49:14 +00:00
parent 2bc1012561
commit 323771b3f1
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class SizeClassMap {
Printf("\n");
uptr d = s - prev_s;
uptr p = prev_s ? (d * 100 / prev_s) : 0;
uptr l = MostSignificantSetBitIndex(s);
uptr l = s ? MostSignificantSetBitIndex(s) : 0;
uptr cached = MaxCached(i) * s;
Printf("c%02zd => s: %zd diff: +%zd %02zd%% l %zd "
"cached: %zd %zd; id %zd\n",