[llvm] r234890 - Fixing a compile error with MSVC 2013 where there is no conversion from DISubprogram to DIScope directly.

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Apr 14 09:27:11 PDT 2015


Thanks for this band-aid, and sorry for the trouble :(.  I'll try to
remember to build Kaleidoscope going forward.

I fixed `DISubprogram` (and reverted this) in r234904.

> On 2015-Apr-14, at 07:19, Aaron Ballman <aaron at aaronballman.com> wrote:
> 
> Author: aaronballman
> Date: Tue Apr 14 09:19:09 2015
> New Revision: 234890
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=234890&view=rev
> Log:
> Fixing a compile error with MSVC 2013

BTW, this failed on clang too.  There just don't seem to be many bots
that care.

> where there is no conversion from DISubprogram to DIScope directly.
> 
> Modified:
>    llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp
> 
> Modified: llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp?rev=234890&r1=234889&r2=234890&view=diff
> ==============================================================================
> --- llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp (original)
> +++ llvm/trunk/examples/Kaleidoscope/Chapter8/toy.cpp Tue Apr 14 09:19:09 2015
> @@ -1234,7 +1234,7 @@ Function *PrototypeAST::Codegen() {
>       CreateFunctionType(Args.size(), Unit), false /* internal linkage */,
>       true /* definition */, ScopeLine, DIDescriptor::FlagPrototyped, false, F);
> 
> -  KSDbgInfo.FnScopeMap[this] = SP;
> +  KSDbgInfo.FnScopeMap[this] = (DIScope)SP;
>   return F;
> }
> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list