Initialize the IndexedModeActions array with memset before
authorDan Gohman <gohman@apple.com>
Mon, 9 Jul 2007 20:49:44 +0000 (20:49 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 9 Jul 2007 20:49:44 +0000 (20:49 +0000)
commit93f81e2822aa67337f629398c81bc2844ef9400a
treea88e30360d80793d134df0f5dceda49cfde89b16
parentda8ebc6b43cbc587bb072c7fbd9b6fed4baa7644
Initialize the IndexedModeActions array with memset before
updating it with calls to setIndexedLoadAction/setIndexedStoreAction,
which only update a few bits at a time. This avoids ostensible
undefined behavior of operationg on values which may be
trap-representations, and as a practical matter fixes errors from
valgrind, which doesn't track uninitialized memory with bit
granularity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38468 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp