Don't crash when the Assignments vector is empty.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 21 Oct 2012 19:05:03 +0000 (19:05 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 21 Oct 2012 19:05:03 +0000 (19:05 +0000)
commit56acf63e35440068935bca999d19a81f76e876d6
tree8409a6109b36fdd5bb79f07c0cf311f248d4a51d
parent5bb5a75b1e47443ba9b07a53e6e967d29108bab3
Don't crash when the Assignments vector is empty.

Reported by Vincent Lejeune using an out-of-tree target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp