DebugInfo: Add implicit conversion from DISubprogram to DIScope
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 16:19:44 +0000 (16:19 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 14 Apr 2015 16:19:44 +0000 (16:19 +0000)
commit66192e4b082f024d2141af3266bf35ffb72537bc
tree970d1c08af9da41f9b6082915e97012078dc92ff
parent091be7b530a80e269183d98b41f393016e33af82
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...)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234904 91177308-0d34-0410-b5e6-96231b3b80d8
examples/Kaleidoscope/Chapter8/toy.cpp
include/llvm/IR/DebugInfo.h