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]
/
tools
/
llvm-ranlib
/
llvm-ranlib.cpp
diff --git
a/tools/llvm-ranlib/llvm-ranlib.cpp
b/tools/llvm-ranlib/llvm-ranlib.cpp
index 7b1b413ecca852c91eed76a5cda54fe7555ca2e2..d9bcc48eb13ed1bcce7db5d3a76868610c3a8d65 100644
(file)
--- a/
tools/llvm-ranlib/llvm-ranlib.cpp
+++ b/
tools/llvm-ranlib/llvm-ranlib.cpp
@@
-75,7
+75,7
@@
int main(int argc, char **argv) {
std::string err_msg;
std::auto_ptr<Archive>
std::string err_msg;
std::auto_ptr<Archive>
- AutoArchive(Archive::OpenAndLoad(ArchivePath,
&
Context, &err_msg));
+ AutoArchive(Archive::OpenAndLoad(ArchivePath, Context, &err_msg));
Archive* TheArchive = AutoArchive.get();
if (!TheArchive)
throw err_msg;
Archive* TheArchive = AutoArchive.get();
if (!TheArchive)
throw err_msg;