[llvm-commits] CVS: llvm/lib/Linker/LinkModules.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 15 22:41:48 PST 2004



Changes in directory llvm/lib/Linker:

LinkModules.cpp updated: 1.90 -> 1.91
---
Log message:

The second arg may be clobbered by this function


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Linker/LinkModules.cpp
diff -u llvm/lib/Linker/LinkModules.cpp:1.90 llvm/lib/Linker/LinkModules.cpp:1.91
--- llvm/lib/Linker/LinkModules.cpp:1.90	Sun Nov 14 17:27:04 2004
+++ llvm/lib/Linker/LinkModules.cpp	Tue Nov 16 00:41:36 2004
@@ -848,7 +848,7 @@
 // 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");
 






More information about the llvm-commits mailing list