[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
Tue Jan 3 12:53:47 PST 2023


MaskRay updated this revision to Diff 486061.
MaskRay marked an inline comment as done.
MaskRay added a comment.

use @rjmccall's comment (thanks a lot!)


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.486061.patch
Type: text/x-patch
Size: 6747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230103/923191ca/attachment-0001.bin>


More information about the cfe-commits mailing list