OSDN Git Service

fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll
authorChris Lattner <sabre@nondot.org>
Fri, 24 Jul 2009 03:55:48 +0000 (03:55 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 24 Jul 2009 03:55:48 +0000 (03:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76942 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

index 74145dc..334172a 100644 (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()) {