diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 21:22:36 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 21:22:36 +0000 |
commit | 1cf085d558fd73f2599fb68e600365dd20502e2b (patch) | |
tree | 39bfcf795980a39bd173e8cbc60962da057bbd9d /llvm/lib/VMCore/Core.cpp | |
parent | 52337414b78f00aa7ff498e5872fd428996e8fe5 (diff) | |
download | bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.gz bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.zip |
Hold the LLVMContext by reference rather than by pointer.
llvm-svn: 74640
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 1c0a8f7af25..9f92e6f2949 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -53,7 +53,7 @@ void LLVMContextDispose(LLVMContextRef C) { /*===-- Operations on modules ---------------------------------------------===*/ LLVMModuleRef LLVMModuleCreateWithName(const char *ModuleID, LLVMContextRef C) { - return wrap(new Module(ModuleID, unwrap(C))); + return wrap(new Module(ModuleID, *unwrap(C))); } void LLVMDisposeModule(LLVMModuleRef M) { |