1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll

llvm-svn: 76942
This commit is contained in:
Chris Lattner 2009-07-24 03:55:48 +00:00
parent 6339e5e786
commit 9aa6064164

View File

@ -799,7 +799,7 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
if (C->isNullValue() && !GVar->hasSection() &&
!(Subtarget->isTargetDarwin() &&
TheSection->getFlags() == SectionKind::RODataMergeStr)) {
TAI->SectionKindForGlobal(GVar) == SectionKind::RODataMergeStr)) {
// FIXME: This seems to be pretty darwin-specific
if (GVar->hasExternalLinkage()) {
if (const char *Directive = TAI->getZeroFillDirective()) {