projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1308b
)
Fixed double free in Kaleidoscope. Fixes PR4762.
author
Reid Kleckner
<reid@kleckner.net>
Mon, 24 Aug 2009 05:42:21 +0000
(
05:42
+0000)
committer
Reid Kleckner
<reid@kleckner.net>
Mon, 24 Aug 2009 05:42:21 +0000
(
05:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79896
91177308
-0d34-0410-b5e6-
96231b3b80d8
examples/Kaleidoscope/toy.cpp
patch
|
blob
|
history
diff --git
a/examples/Kaleidoscope/toy.cpp
b/examples/Kaleidoscope/toy.cpp
index 3c1ce8b4d417df09af1c85a29b903af2fcf73f17..6b0560a144c48ddcf7c91cc4ce1589e170766eee 100644
(file)
--- a/
examples/Kaleidoscope/toy.cpp
+++ b/
examples/Kaleidoscope/toy.cpp
@@
-1107,12
+1107,13
@@
int main() {
// Make the module, which holds all the code.
TheModule = new Module("my cool jit", Context);
-
- // Create the JIT.
- TheExecutionEngine = EngineBuilder(TheModule).create();
{
ExistingModuleProvider OurModuleProvider(TheModule);
+
+ // Create the JIT.
+ TheExecutionEngine = EngineBuilder(&OurModuleProvider).create();
+
FunctionPassManager OurFPM(&OurModuleProvider);
// Set up the optimizer pipeline. Start with registering info about how the