Skip to content

Commit fc3642b

Browse files
committed
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
1 parent c43c930 commit fc3642b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
10081008
Characteristics |= COFF::IMAGE_SCN_LNK_COMDAT;
10091009

10101010
return getContext().getCOFFSection(Name.str(), Characteristics,
1011-
COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH, Kind);
1011+
COFF::IMAGE_COMDAT_SELECT_ANY, Kind);
10121012
}
10131013

10141014
if (Kind.isText())

0 commit comments

Comments
 (0)