diff --git a/include/llvm-c/Error.h b/include/llvm-c/Error.h index 6a5ba877eb7..71e84661222 100644 --- a/include/llvm-c/Error.h +++ b/include/llvm-c/Error.h @@ -47,6 +47,8 @@ void LLVMConsumeError(LLVMErrorRef Err); /** * Returns the given string's error message. This operation consumes the error, * and the given LLVMErrorRef value is not usable once this call returns. + * The caller is responsible for disposing of the string by calling + * LLVMDisposeErrorMessage. */ char *LLVMGetErrorMessage(LLVMErrorRef Err);