Fixing a compile error with MSVC 2013 where there is no conversion from DISubprogram...
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 2838d6df5937a836ceae034ead157ec3e07f3b14..8dfec4b2ebadf14d33e37b6322053ac6191e8588 100644 (file)
@@ -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;
 }