Fix obvious mistake pointed out by Michael Spencer.

llvm-svn: 115952
This commit is contained in:
Jakob Stoklund Olesen 2010-10-07 18:47:10 +00:00
parent af0fa37509
commit 7f38b44415

View File

@ -274,7 +274,7 @@ X86RegisterInfo::getMatchingSuperRegClass(const TargetRegisterClass *A,
if (A->getSize() == 8)
return A;
} else if (B == &X86::GR32_NOSPRegClass) {
if (A == &X86::GR64RegClass || &X86::GR64_NOSPRegClass)
if (A == &X86::GR64RegClass || A == &X86::GR64_NOSPRegClass)
return &X86::GR64_NOSPRegClass;
if (A->getSize() == 8)
return getCommonSubClass(A, &X86::GR64_NOSPRegClass);