summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-04-14 14:19:09 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-04-14 14:19:09 +0000
commitc20e6d755d0b8afc8ace3dabddedd3d980a619a3 (patch)
tree0aad523c3033931fc014a6b2ec7e2c51123e0d91 /llvm/examples/Kaleidoscope/Chapter8/toy.cpp
parentb50f4ba461bcee9c3961646cb58ba440bbf99acb (diff)
downloadbcm5719-llvm-c20e6d755d0b8afc8ace3dabddedd3d980a619a3.tar.gz
bcm5719-llvm-c20e6d755d0b8afc8ace3dabddedd3d980a619a3.zip
Fixing a compile error with MSVC 2013 where there is no conversion from DISubprogram to DIScope directly.
llvm-svn: 234890
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter8/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter8/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp b/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
index 2838d6df593..8dfec4b2eba 100644
--- a/llvm/examples/Kaleidoscope/Chapter8/toy.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud