summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-11-11 21:42:09 +0000
committerLang Hames <lhames@gmail.com>2016-11-11 21:42:09 +0000
commit1f2bf2d3e1e45e0f88a4c93bc662724a3b78abf0 (patch)
tree1ea6d0c461cc9e0f3a62bfb51052a82091b26707 /llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
parentec4b0c360f8e0e3870c41dab4894bc23c06843c2 (diff)
downloadbcm5719-llvm-1f2bf2d3e1e45e0f88a4c93bc662724a3b78abf0.tar.gz
bcm5719-llvm-1f2bf2d3e1e45e0f88a4c93bc662724a3b78abf0.zip
[ORC] Re-apply 286620 with fixes for the ErrorSuccess class.
llvm-svn: 286639
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
index 9c21098971a..f5a06cf2bf4 100644
--- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
+++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
@@ -1265,8 +1265,8 @@ int main(int argc, char *argv[]) {
BinopPrecedence['*'] = 40; // highest.
auto TCPChannel = connect();
- MyRemote Remote = ExitOnErr(MyRemote::Create(*TCPChannel));
- TheJIT = llvm::make_unique<KaleidoscopeJIT>(Remote);
+ auto Remote = ExitOnErr(MyRemote::Create(*TCPChannel));
+ TheJIT = llvm::make_unique<KaleidoscopeJIT>(*Remote);
// Automatically inject a definition for 'printExprResult'.
FunctionProtos["printExprResult"] =
@@ -1288,7 +1288,7 @@ int main(int argc, char *argv[]) {
TheJIT = nullptr;
// Send a terminate message to the remote to tell it to exit cleanly.
- ExitOnErr(Remote.terminateSession());
+ ExitOnErr(Remote->terminateSession());
return 0;
}
OpenPOWER on IntegriCloud