Do not check that the bodies of two defs of same linkonce global are the same.

Such a check does not make any sense in presense of inlining and other compiler-dependent stuff.
This should fix bunch of warnings on mingw32.

llvm-svn: 116113
This commit is contained in:
Anton Korobeynikov 2010-10-08 21:50:04 +00:00
parent c43c930690
commit fc3642b205
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT;
return getContext().getCOFFSection(Name.str(), Characteristics,
COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH, Kind);
COFF::IMAGE_COMDAT_SELECT_ANY, Kind);
}
if (Kind.isText())