Allocate the module provider in the Kaleidoscope code on the heap, not the stack...
authorReid Kleckner <reid@kleckner.net>
Wed, 26 Aug 2009 20:58:25 +0000 (20:58 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 26 Aug 2009 20:58:25 +0000 (20:58 +0000)
commit60130f0e90d69dc3022878bfe4508dae81f911eb
tree7f667606954d5f6ee86387749d1adada52d0758d
parent7309be6735666143bd9835b275dc8501617a2591
Allocate the module provider in the Kaleidoscope code on the heap, not the stack, so that it can be properly deleted.  Also update the tutorial with the new code.  This fixes PR4762, hopefully better than the last time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80138 91177308-0d34-0410-b5e6-96231b3b80d8
docs/tutorial/LangImpl4.html
docs/tutorial/LangImpl5.html
docs/tutorial/LangImpl6.html
docs/tutorial/LangImpl7.html
examples/Kaleidoscope/toy.cpp