[llvm-commits] [llvm] r52351 - /llvm/trunk/lib/Linker/LinkModules.cpp
Chris Lattner
sabre at nondot.org
Mon Jun 16 13:03:01 PDT 2008
Author: lattner
Date: Mon Jun 16 15:03:01 2008
New Revision: 52351
URL: http://llvm.org/viewvc/llvm-project?rev=52351&view=rev
Log:
bail out sooner if we have two concrete but different types.
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=52351&r1=52350&r2=52351&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Mon Jun 16 15:03:01 2008
@@ -93,6 +93,10 @@
// type. For example, we cannot resolve an int to a float.
if (DestTyT->getTypeID() != SrcTyT->getTypeID()) return true;
+ // If neither type is abstract, then they really are just different types.
+ if (!DestTyT->isAbstract() && !SrcTyT->isAbstract())
+ return true;
+
// Otherwise, resolve the used type used by this derived type...
switch (DestTyT->getTypeID()) {
default:
More information about the llvm-commits
mailing list