OSDN Git Service

Don't dereference begin() on an empty vector.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 27 Sep 2012 21:05:59 +0000 (21:05 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 27 Sep 2012 21:05:59 +0000 (21:05 +0000)
commit657720bc6ed1f214c4e7f45f80dcc15b2e168288
tree0326a848b92d8eb23a28eeae3f6ec63004a439ab
parentcb39aa05afd52f017869ce5399652223626da7b7
Don't dereference begin() on an empty vector.

The fix is obvious and the only test case I have is horrible, so I am
not including it. The problem shows up when self-hosting clang on i386
with -new-coalescer enabled.

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