[llvm] [TLI] Add `noreturn` on `exit`, `_Exit` and `abort` (PR #101623)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 07:39:08 PDT 2024


================
@@ -66,6 +67,14 @@ static bool setIsCold(Function &F) {
   return true;
 }
 
+static bool setNoReturn(Function &F) {
----------------
goldsteinn wrote:

My understanding of TLI is it should stand alone if say we are linking w.o headers (not that its the most common thing).

I don't have particularly strong preference here, just thought I'd add it when I was doing terminate/__cxa_throw.

https://github.com/llvm/llvm-project/pull/101623


More information about the llvm-commits mailing list