Don't rely in there being one argument before we've actually identified
authorChandler Carruth <chandlerc@gmail.com>
Mon, 12 Dec 2011 10:57:20 +0000 (10:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 12 Dec 2011 10:57:20 +0000 (10:57 +0000)
commita56f5581ecb6ba741645a74bfa399f4bdf5b2f71
tree08da21d83817f0bd858b038105fb053cfe1475c4
parentd45fbe62270eaf826419b93f1da66f1850f37faf
Don't rely in there being one argument before we've actually identified
a function to upgrade. Also, simplify the code a bit at the expense of
one line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/AutoUpgrade.cpp