[llvm] [CodeGen] Do not emit TRAP for `unreachable` after `@llvm.trap` (PR #94570)
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 11:21:29 PDT 2024
================
@@ -1836,6 +1837,16 @@ class CallInst : public CallBase {
bool canReturnTwice() const { return hasFnAttr(Attribute::ReturnsTwice); }
void setCanReturnTwice() { addFnAttr(Attribute::ReturnsTwice); }
+ bool isNonContinuableTrap() const {
----------------
igorkudrin wrote:
[`debugtrap`](https://llvm.org/docs/LangRef.html#llvm-debugtrap-intrinsic) is not `noreturn`; it acts like a breakpoint and implies continuation.
https://github.com/llvm/llvm-project/pull/94570
More information about the llvm-commits
mailing list