aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-09 06:25:46 +0000
committerChris Lattner <sabre@nondot.org>2008-08-09 06:25:46 +0000
commitbe9e8ae979631fd843f36755703f98ebce502acb (patch)
tree5a34a153a3d8d8dba320b53ed47ab52539b04e2a
parent08db7367b1d498f13c581c143802e7d4cf32c403 (diff)
comment update
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54576 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constant.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index 2679c10789..faaced8041 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -83,7 +83,8 @@ public:
/// getVectorElements - This method, which is only valid on constant of vector
/// type, returns the elements of the vector in the specified smallvector.
- /// This handles breaking down a vector undef into undef elements, etc.
+ /// This handles breaking down a vector undef into undef elements, etc. For
+ /// constant exprs and other cases we can't handle, we return an empty vector.
void getVectorElements(SmallVectorImpl<Constant*> &Elts) const;
/// destroyConstant - Called if some element of this constant is no longer