DebugInfo: Add implicit conversion from DISubprogram to DIScope
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 8dfec4b2ebadf14d33e37b6322053ac6191e8588..2838d6df5937a836ceae034ead157ec3e07f3b14 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] = (DIScope)SP;
+  KSDbgInfo.FnScopeMap[this] = SP;
   return F;
 }