From: Chris Lattner Date: Fri, 24 Jul 2009 03:55:48 +0000 (+0000) Subject: fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e2663d076cc7faf5d86594c261e0a691b0f71e00;p=oota-llvm.git fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76942 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 74145dcfce0..334172a90d7 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -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()) {