diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-09 20:49:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-09 20:49:44 +0000 |
commit | 6decfbf1332dda75c05d49d241409bc95ae7cf0e (patch) | |
tree | b72de0a43b1b7233bda1e27f3bd55c206a01726e /llvm/lib/Support/SmallPtrSet.cpp | |
parent | aee901745de3effeb000f66714bad39abbebfcca (diff) | |
download | bcm5719-llvm-6decfbf1332dda75c05d49d241409bc95ae7cf0e.tar.gz bcm5719-llvm-6decfbf1332dda75c05d49d241409bc95ae7cf0e.zip |
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.
llvm-svn: 38468
Diffstat (limited to 'llvm/lib/Support/SmallPtrSet.cpp')
0 files changed, 0 insertions, 0 deletions