summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-19 14:32:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-19 14:32:16 +0000
commit932979df3c69c000de68b949469cb653a6de2182 (patch)
tree24795e6a54d88f4fd626f8b5dbff813f1d5884d3 /examples
parent4e6916abeeba3237870fb8821004099a83876e81 (diff)
Go back to having a takeModule instead of a getModule.
Returning a std::unique_ptr is more constrained. Thanks to David Blaikie for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/clang-interpreter/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp
index 5cc5d524f1..60cb704107 100644
--- a/examples/clang-interpreter/main.cpp
+++ b/examples/clang-interpreter/main.cpp
@@ -165,7 +165,7 @@ int main(int argc, const char **argv, char * const *envp) {
return 1;
int Res = 255;
- if (std::unique_ptr<llvm::Module> &Module = Act->getModule())
+ if (std::unique_ptr<llvm::Module> Module = Act->takeModule())
Res = Execute(std::move(Module), envp);
// Shutdown.