Fix PR4922, where Sema would complete tentative definitions in nondeterminstic
order because it was doing so while iterating over a densemap.

There are still similar problems in other places, for example 
WeakUndeclaredIdentifiers is still written to the PCH file in a nondeterminstic
order, and we emit warnings about #pragma weak in nondeterminstic order.

llvm-svn: 81236
5 files changed
tree: 6bac192b6cd75b459694bfcde4562e8f4ccf634c
  1. clang/
  2. compiler-rt/
  3. llvm/