From 30e4b17e25b3a13efcabf102f16d8c7df8b15b60 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 14 Apr 2015 14:19:09 +0000 Subject: [PATCH] Fixing a compile error with MSVC 2013 where there is no conversion from DISubprogram to DIScope directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234890 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Kaleidoscope/Chapter8/toy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1