Go to file
Chandler Carruth 5394e11a55 Switch the empty and tombstone key enumerators to not have explicit
values -- that's not required to fix the bug that was cropping up, and
the values selected made the enumeration's underlying type signed and
introduced some warnings. This fixes the -Werror build.

The underlying issue here was that the DenseMapInfo was casting values
completely outside the range of the underlying storage of the
enumeration to the enumeration's type. GCC went and "optimized" that
into infloops and other misbehavior. By providing designated special
values for these keys in the dense map, we ensure they are indeed
representable and that they won't be used for anything else.

It might be better to reuse None for the empty key and have the
tombstone share the value of the sentinel enumerator, but honestly
having 2 extra enumerators seemed not to matter and this seems a bit
simpler. I'll let Bill shuffle this around (or ask me to shuffle it
around) if he prefers it to look a different way.

I also made the switch a bit more clear (and produce a better assert)
that the enumerators are *never* going to show up and are errors if they
do.

llvm-svn: 171614
2013-01-05 08:47:26 +00:00
clang Fix set-xcode-analyzer to only modify the ExecPath for the analyzer when using --use-xcode-clang. 2013-01-05 07:31:54 +00:00
clang-tools-extra Add a namespace qualifier to the befriending statement for 2013-01-05 02:57:54 +00:00
compiler-rt Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
debuginfo-tests XTARGET was removed, update debug-info tests. 2012-10-20 01:38:50 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Move common header files into a 'support' directory; make 'testit' include -I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files 2013-01-05 03:21:01 +00:00
libcxxabi Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
lld [CMake] Don't add flags this late and don't force libc++. Error if we know the compiler doesn't support c++11. 2013-01-05 04:16:52 +00:00
lldb <rdar://problem/12602653> 2013-01-05 06:08:51 +00:00
llvm Switch the empty and tombstone key enumerators to not have explicit 2013-01-05 08:47:26 +00:00
polly Rewrite #includes for llvm/Foo.h to llvm/IR/Foo.h as appropriate to 2013-01-02 11:47:44 +00:00