[llvm] LangRef: mention that willreturn can cause time-traveling UB (PR #214229)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 09:50:40 PDT 2026
================
@@ -105,6 +106,9 @@ optimize the function to simply:
unreachable
}
+Without ``willreturn``, UB in LLVM will never exhibit time-traveling. This means
+frontends can avoid time-traveling UB by only putting ``willreturn`` on
+functions without observable behavior.
----------------
efriedma-quic wrote:
Yes, that's fine.
https://github.com/llvm/llvm-project/pull/214229
More information about the llvm-commits
mailing list