Fix read-of-uninitialized introduced in r253277 exposed on some buildbots
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 17 Nov 2015 23:26:06 +0000 (23:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 17 Nov 2015 23:26:06 +0000 (23:26 +0000)
commitc672a9b1f35de3f045d9bc3171e1b936eb00267a
treecbf88130a714477a77c7de191dee8e2026e7fc01
parente34401de05668522e24e0faf54dc62d7ebf2f8fc
Fix read-of-uninitialized introduced in r253277 exposed on some buildbots

Verified that this was at least /an/ issue, if not the only one, by
initializing NumBuckets to 1 (previously it was uninitialized, so if
this change made a difference, which it did (causing a bunch of tests to
crash) it demonstrates use-of-uninitialized memory). Initializing then
removes the crashes.

Thanks Reid for the debugging assistance

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253395 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h