[all-commits] [llvm/llvm-project] 7ac658: [WebAssembly] assert(false) -> llvm_unreachable

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Sat Feb 18 00:41:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ac658a07b9a2937f1a9319a47a9cec6afae2370
      https://github.com/llvm/llvm-project/commit/7ac658a07b9a2937f1a9319a47a9cec6afae2370
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2023-02-18 (Sat, 18 Feb 2023)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp

  Log Message:
  -----------
  [WebAssembly] assert(false) -> llvm_unreachable

Avoids warnings in -asserts builds.

ASTContext.cpp:4098:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^




More information about the All-commits mailing list