[llvm-commits] [llvm] r143316 - /llvm/trunk/lib/Linker/LinkModules.cpp

Peter Collingbourne peter at pcc.me.uk
Sun Oct 30 10:46:34 PDT 2011


Author: pcc
Date: Sun Oct 30 12:46:34 2011
New Revision: 143316

URL: http://llvm.org/viewvc/llvm-project?rev=143316&view=rev
Log:
Teach ModuleLinker::getLinkageResult about materialisable functions

Modified:
    llvm/trunk/lib/Linker/LinkModules.cpp

Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=143316&r1=143315&r2=143316&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Sun Oct 30 12:46:34 2011
@@ -446,7 +446,7 @@
   assert(!Src->hasLocalLinkage() &&
          "If Src has internal linkage, Dest shouldn't be set!");
   
-  bool SrcIsDeclaration = Src->isDeclaration();
+  bool SrcIsDeclaration = Src->isDeclaration() && !Src->isMaterializable();
   bool DestIsDeclaration = Dest->isDeclaration();
   
   if (SrcIsDeclaration) {





More information about the llvm-commits mailing list