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

Aaron Ballman aaron at aaronballman.com
Tue Apr 14 07:19:09 PDT 2015


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 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;
 }
 





More information about the llvm-commits mailing list