commit | a821d327297e3089d7d893814bb8bf5dc5b68499 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Fri Jul 25 19:46:31 2014 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Fri Jul 25 19:46:31 2014 +0000 |
tree | e416238cc6c5e5d3789d4b0e0aa34980db94e528 | |
parent | a57d91c2aede9cb8c5e43ab86cfaebe4e43f0161 [diff] |
Fix unsafe memory access The following expression m[i] = m[j] where m is a DenseMap and i != j is not safe. m[j] returns a reference, which would be invalidated when a rehashing occurs. If rehashing occurs to make room for m[i], m[j] becomes invalid, and that invalid reference would be used as the RHS value of the expression. llvm-svn: 213969