[PATCH] D140868: [C] Make (c ? e1 : e2) noreturn only if both e1 and e2 are noreturn

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 19:54:19 PST 2023


MaskRay updated this revision to Diff 486453.
MaskRay added a comment.

show that C23 `[[noreturn]]` codegen is unaffected.

The diff base improves `attr-noreturn.c`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140868/new/

https://reviews.llvm.org/D140868

Files:
  clang/include/clang/AST/ASTContext.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CodeGen/attr-noreturn.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140868.486453.patch
Type: text/x-patch
Size: 5808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230105/754ab5bd/attachment-0001.bin>


More information about the cfe-commits mailing list