llpc/util/llpcError.cpp
void mustSucceed(Result result, const Twine &errorMessage) {
  if (result == Result::Success)
    return;

  if (errorMessage.isTriviallyEmpty())
    LLPC_ERRS("Unhandled error result\n");
  else
    LLPC_ERRS("Unhandled error result: " << errorMessage << "\n");

  assert(false && "Result is not Success");
}
// =====================================================================================================================
// Handles passed `result` and checks if it is a Success. Prints `errorMessage` if not.
//
// @param result : Result to check
// @param errorMessage : Optional error message to print on failure
Handles passed `result` and checks if it is a Success. Prints `errorMessage` if not.
Handles passed ` result ` and checks if it is a Success . Prints ` errorMessage ` if not .
void mustSucceed(Result result, const Twine &errorMessage) {
  if (result == Result::Success)
    return;
  if (errorMessage.isTriviallyEmpty())
    LLPC_ERRS("Unhandled error result\n");
  else
    LLPC_ERRS("Unhandled error result: " << errorMessage << "\n");
  assert(false && "Result is not Success");
}
void mustSucceed ( Result result , const Twine & errorMessage ) { if ( result == Result :: Success ) return ; if ( errorMessage . isTriviallyEmpty ( ) ) LLPC_ERRS ( " \n " ) ; else LLPC_ERRS ( " " << errorMessage << " \n " ) ; assert ( false && " " ) ; }
Handles passed `result` and checks if it is a Success.
Handles passed ` result ` and checks if it is a Success .