[PATCH] fix "ambiguous call to overloaded function" with Visual Studio 2010

The attached patch gets rid of the "error C2668" mentioned on the wiki
page (all the other errors seem to be fixed in SVN already AFAICT):

http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F

Applying this to trunk fixes http://llvm.org/bugs/show_bug.cgi?id=5592 for me.

fix-ambiguous-call-on-msvc-v2.patch (7.02 KB)

nobled <nobled@dreamwidth.org> writes:

The attached patch gets rid of the "error C2668" mentioned on the wiki
page (all the other errors seem to be fixed in SVN already AFAICT):

http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F

Applying this to trunk fixes 5592 – Visual Studio 2010 build totally broken for x86/x64 for me.

Are you getting errors without that patch? Some of the code it modifies
is old and LLVM is building fine for me with VS 2010 for the last
several months, although the last build is from a few weeks ago.

[snip]

nobled <nobled@dreamwidth.org> writes:

The attached patch gets rid of the "error C2668" mentioned on the wiki
page (all the other errors seem to be fixed in SVN already AFAICT):

http://wiki.llvm.org/How_do_I_compile_on_Visual_C%2B%2B%3F

The build works without the patch, but better safe than sorry. Committed
in r110029. Thanks!

Applying this to trunk fixes 5592 – Visual Studio 2010 build totally broken for x86/x64 for me.

Please close it.