diff --git a/examples/Kaleidoscope/Chapter8/toy.cpp b/examples/Kaleidoscope/Chapter8/toy.cpp index 2838d6df593..8dfec4b2eba 100644 --- a/examples/Kaleidoscope/Chapter8/toy.cpp +++ b/examples/Kaleidoscope/Chapter8/toy.cpp @@ -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; }