The second arg may be clobbered by this function
authorChris Lattner <sabre@nondot.org>
Tue, 16 Nov 2004 06:41:36 +0000 (06:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Nov 2004 06:41:36 +0000 (06:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17880 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index a6155707294c4c741ec1f8e1173dc017757602de..dcdcabb1dfa308a33bb454ee506e090201e4768d 100644 (file)
@@ -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");