ΒΆinline void consumeError(llvm::Error Err)

Description

Consume a Error without doing anything. This method should be used only where an error can be considered a reasonable and expected return value. Uses of this method are potentially indicative of design problems: If it's legitimate to do nothing while processing an "error", the error-producer might be more clearly refactored to return an Optional <T >.

Declared at: llvm/include/llvm/Support/Error.h:1043

Parameters

llvm::Error Err