[all-commits] [llvm/llvm-project] ba3380: [Bitcode] Improve some error messages

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 11 02:37:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba3380026aff2a1738c19c739fe04e1caf5964bf
      https://github.com/llvm/llvm-project/commit/ba3380026aff2a1738c19c739fe04e1caf5964bf
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  [Bitcode] Improve some error messages

It's not particularly helpful if 95% of our errors just say
"Invalid record". This at least adds the record type to a subset
of errors.


  Commit: 36be8fabb09764a080e69d37558dd8aa7b81526e
      https://github.com/llvm/llvm-project/commit/36be8fabb09764a080e69d37558dd8aa7b81526e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  [Bitcode] Delete phi node on error

These error conditions are checked after the phi node has been
created, so we also need to delete it.


Compare: https://github.com/llvm/llvm-project/compare/aa590e5823c3...36be8fabb097


More information about the All-commits mailing list