r219116 - Using an explicit cast to work around MSVC 2013 not picking the conversion operator as expected. NFC, should fix the MSVC build bots.

Yaron Keren yaron.keren at gmail.com
Mon Oct 6 06:26:44 PDT 2014


Thanks! saw this earlier but wasn't sure if it's OK to cast.

Yaron


2014-10-06 15:42 GMT+03:00 Aaron Ballman <aaron at aaronballman.com>:

> Author: aaronballman
> Date: Mon Oct  6 07:42:31 2014
> New Revision: 219116
>
> URL: http://llvm.org/viewvc/llvm-project?rev=219116&view=rev
> Log:
> Using an explicit cast to work around MSVC 2013 not picking the conversion
> operator as expected. NFC, should fix the MSVC build bots.
>
> Modified:
>     cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=219116&r1=219115&r2=219116&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Oct  6 07:42:31 2014
> @@ -1178,7 +1178,7 @@ CollectCXXMemberFunctions(const CXXRecor
>      auto MI = SPCache.find(Method->getCanonicalDecl());
>      EltTys.push_back(MI == SPCache.end()
>                           ? CreateCXXMemberFunction(Method, Unit, RecordTy)
> -                         : MI->second);
> +                         : static_cast<llvm::Value *>(MI->second));
>    }
>  }
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141006/92a67d92/attachment.html>


More information about the cfe-commits mailing list