Document and fix Constant::getVectorElements to return an empty vector
authorChris Lattner <sabre@nondot.org>
Mon, 14 Jul 2008 05:10:41 +0000 (05:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Jul 2008 05:10:41 +0000 (05:10 +0000)
commit071aade5f0e680c70fbfc824fef690537e93cf9b
treefbc8b6dc02f21aafa75063401541c52846ae1544
parentac77bfdbd4d83edbc17c9fd362b5d692cbbeff40
Document and fix Constant::getVectorElements to return an empty vector
when presented with a constant expr.

If ConstantExpr::getV[IF]Cmp to work when ConstantFoldCompareInstruction
returns an undef or constant expr.

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