From 967b04d9bc908bf09c6ac4ad6d601517eaf4a8a2 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 23 Apr 2009 20:18:13 +0000 Subject: [PATCH] Fix an obvious type. llvm-svn: 69918 --- llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 60f7f403a093..dc1f209d96fa 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp @@ -1342,7 +1342,7 @@ bool SimpleRegisterCoalescing::JoinCopy(CopyRec &TheCopy, bool &Again) { return false; } Limit = allocatableRCRegs_[DstRC].count(); - } else if (!SrcIsPhys && !SrcIsPhys) { + } else if (!SrcIsPhys && !DstIsPhys) { unsigned SrcSize = SrcRC->getSize(); unsigned DstSize = DstRC->getSize(); if (SrcSize < DstSize)