summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-16 06:41:36 +0000
committerChris Lattner <sabre@nondot.org>2004-11-16 06:41:36 +0000
commitf2e808449da6640afed30a59942c1841af9d84e6 (patch)
tree15a33c8fc0977569ce1a57bf7a08524cca77aad8 /llvm/lib/Linker/LinkModules.cpp
parent5d6c23606d1dbfdfbd4b871173fba9cb4349a22b (diff)
downloadbcm5719-llvm-f2e808449da6640afed30a59942c1841af9d84e6.tar.gz
bcm5719-llvm-f2e808449da6640afed30a59942c1841af9d84e6.zip
The second arg may be clobbered by this function
llvm-svn: 17880
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index a6155707294..dcdcabb1dfa 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -848,7 +848,7 @@ static bool LinkAppendingVars(Module *M,
// error occurs, true is returned and ErrorMsg (if not null) is set to indicate
// the problem. Upon failure, the Dest module could be in a modified state, and
// shouldn't be relied on to be consistent.
-bool llvm::LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg) {
+bool llvm::LinkModules(Module *Dest, Module *Src, std::string *ErrorMsg) {
assert(Dest != 0 && "Invalid Destination module");
assert(Src != 0 && "Invalid Source Module");
OpenPOWER on IntegriCloud