don't load element before checking to see if it is valid.
commitbda20650d2ec113bd78b8c809dbfafa7f7077152
authorChris Lattner <sabre@nondot.org>
Sat, 9 Jul 2011 18:23:26 +0000 (9 18:23 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Jul 2011 18:23:26 +0000 (9 18:23 +0000)
tree132720bdfa231994b144fece9d3a8e395b0bff7f
parent145ab1071123c711242ac665bdcf80004f504d9b
don't load element before checking to see if it is valid.

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