[all-commits] [llvm/llvm-project] 45ef0d: Add llvm::Error C API, LLVMCantFail

David Blaikie via All-commits all-commits at lists.llvm.org
Wed Jul 31 09:40:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45ef0d492f7b61613d0833fbf7eafdd41e137139
      https://github.com/llvm/llvm-project/commit/45ef0d492f7b61613d0833fbf7eafdd41e137139
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2024-07-31 (Wed, 31 Jul 2024)

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

  Log Message:
  -----------
  Add llvm::Error C API, LLVMCantFail

It's barely testable - the test does exercise the code, but wouldn't
fail on an empty implementation. It would cause a memory leak though
(because the error handle wouldn't be unwrapped/reowned) which could be
detected by asan and other leak detectors.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list