diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index 2679c107897..faaced80410 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 &Elts) const; /// destroyConstant - Called if some element of this constant is no longer