Small fix for assembler generation on Darwin PPC64. Patch by Michael Kostylev. PR11437.

llvm-svn: 145553
This commit is contained in:
Eli Friedman 2011-12-01 01:43:47 +00:00
parent d8fb1e30eb
commit c1870b2633
1 changed files with 1 additions and 1 deletions

View File

@ -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.");