summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 16:19:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 16:19:44 +0000
commit754cf7920ba3c1a5e09b8aa516d63c0b101299d5 (patch)
tree0788e01acda46a3fae743d44f9cf8a222be6945a /llvm/examples/Kaleidoscope
parent2defea0efa67969c06a00b7b384ef5bf93ad50ea (diff)
downloadbcm5719-llvm-754cf7920ba3c1a5e09b8aa516d63c0b101299d5.tar.gz
bcm5719-llvm-754cf7920ba3c1a5e09b8aa516d63c0b101299d5.zip
DebugInfo: Add implicit conversion from DISubprogram to DIScope
As a follow-up to r234850, add an implicit conversion from `DISubprogram` to `DIScope` to support Kaleidoscope Ch. 8. This also reverts that band-aid from r234890. (/me learns *again* to build Kaleidoscope before commit...) llvm-svn: 234904
Diffstat (limited to 'llvm/examples/Kaleidoscope')
-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 8dfec4b2eba..2838d6df593 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] = (DIScope)SP;
+ KSDbgInfo.FnScopeMap[this] = SP;
return F;
}
OpenPOWER on IntegriCloud