[all-commits] [llvm/llvm-project] ecb310: [Error] Make llvm::cantFail include the original e...

Don Hinton via All-commits all-commits at lists.llvm.org
Thu Oct 17 14:53:10 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ecb310b3a7cf60d2bc28aaf8caf8fd29b9f11ec9
      https://github.com/llvm/llvm-project/commit/ecb310b3a7cf60d2bc28aaf8caf8fd29b9f11ec9
  Author: Don Hinton <hintonda at gmail.com>
  Date:   2019-10-17 (Thu, 17 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Support/Error.h
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  [Error] Make llvm::cantFail include the original error messages

Summary:
The current implementation eats the current errors and just outputs
the message parameter passed to llvm::cantFail.  This change appends
the original error message(s), so the user can see exactly why
cantFail failed.  New logic is conditional on NDEBUG.

Reviewed By: lhames

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69057

llvm-svn: 375176




More information about the All-commits mailing list