projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git]
/
examples
/
Kaleidoscope
/
toy.cpp
diff --git
a/examples/Kaleidoscope/toy.cpp
b/examples/Kaleidoscope/toy.cpp
index 9ca6035156cda8b63142feb9d719fdd3a083d2fc..612cfa547ca1415d4d3f503c9e1ff0af8a494a8c 100644
(file)
--- a/
examples/Kaleidoscope/toy.cpp
+++ b/
examples/Kaleidoscope/toy.cpp
@@
-1099,7
+1099,7
@@
int main() {
getNextToken();
// Make the module, which holds all the code.
- TheModule = new Module("my cool jit",
&
Context);
+ TheModule = new Module("my cool jit", Context);
// Create the JIT.
TheExecutionEngine = ExecutionEngine::create(TheModule);