diff --git a/llvm/include/llvm/IR/GlobalVariable.h b/llvm/include/llvm/IR/GlobalVariable.h index bcaf8e91432ba..5108d5eec292e 100644 --- a/llvm/include/llvm/IR/GlobalVariable.h +++ b/llvm/include/llvm/IR/GlobalVariable.h @@ -146,8 +146,8 @@ class GlobalVariable : public GlobalObject, public ilist_node { assert(hasInitializer() && "GV doesn't have initializer!"); return static_cast(Op<0>().get()); } - /// setInitializer - Sets the initializer for this global variable, removing - /// any existing initializer if InitVal==NULL. If this GV has type T*, the + /// setInitializer - Sets the initializer for this global variable to + /// InitVal, which must be non-null. If this GV has type T*, the /// initializer must have type T. void setInitializer(Constant *InitVal);