From: Eli Friedman Date: Thu, 1 Dec 2011 01:43:47 +0000 (+0000) Subject: Small fix for assembler generation on Darwin PPC64. Patch by Michael Kostylev. ... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=32e698cc104f4716dabddeae15133ba1b25969a1;p=oota-llvm.git Small fix for assembler generation on Darwin PPC64. Patch by Michael Kostylev. PR11437. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145553 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 56f622e31ca..a33dfda0454 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -441,7 +441,7 @@ void PPCDarwinAsmPrinter::EmitStartOfAsmFile(Module &M) { Directive = PPC::DIR_970; if (Subtarget.hasAltivec() && Directive < PPC::DIR_7400) Directive = PPC::DIR_7400; - if (Subtarget.isPPC64() && Directive < PPC::DIR_970) + if (Subtarget.isPPC64() && Directive < PPC::DIR_64) Directive = PPC::DIR_64; assert(Directive <= PPC::DIR_64 && "Directive out of range.");