[Bug 7748] [PATCH] Fix MSVC truncating enums

I attached a patch to http://llvm.org/bugs/show_bug.cgi?id=7748 that
should fix it; can anybody review?

fix-enum-truncation.patch (928 Bytes)

Wow, this is really ugly. I feel bad because I told bruno to go ahead and use 64-bit integers in the enum values. Bruno, how terrible would it be to switch back to 32-bit enumerators?

-Chris

Not a problem at all! There's already a patch laying around for that
on the bug description, I will give it a try, if it doesn't work I'll
switch it back myself soon.

Awesome, thanks!

-Chris