diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index f4b2a9b817a..d89aad0ebde 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -390,7 +390,7 @@ void LiveIntervals::joinIntervals() ++numJoined; } } - else if (MRegisterInfo::isPhysicalRegister(intA->reg) xor + else if (MRegisterInfo::isPhysicalRegister(intA->reg) ^ MRegisterInfo::isPhysicalRegister(intB->reg)) { if (MRegisterInfo::isPhysicalRegister(intB->reg)) { std::swap(regA, regB);