https://github.com/aheejin created 
https://github.com/llvm/llvm-project/pull/206660

We switched to use `_UA_SEARCH_PHASE` in
https://github.com/emscripten-core/emscripten/pull/17991, but the comment above 
was not fixed, and it was upstreamed that way later.

>From 6ba8a21369022dccded9f02da7e239ae089cd336 Mon Sep 17 00:00:00 2001
From: Heejin Ahn <[email protected]>
Date: Tue, 30 Jun 2026 06:50:00 +0000
Subject: [PATCH] [libunwind] Fix comment about phase (NFC)

We switched to use `_UA_SEARCH_PHASE` in
https://github.com/emscripten-core/emscripten/pull/17991, but the
comment above was not fixed, and it was upstreamed that way later.
---
 libunwind/src/Unwind-wasm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libunwind/src/Unwind-wasm.c b/libunwind/src/Unwind-wasm.c
index c0ca9b775d244..2e949d005b8f5 100644
--- a/libunwind/src/Unwind-wasm.c
+++ b/libunwind/src/Unwind-wasm.c
@@ -54,7 +54,7 @@ _Unwind_Reason_Code _Unwind_CallPersonality(void 
*exception_ptr) {
   __wasm_lpad_context.selector = 0;
 
   // Call personality function. Wasm does not have two-phase unwinding, so we
-  // only do the cleanup phase.
+  // only do the search phase.
   return __gxx_personality_wasm0(
       1, _UA_SEARCH_PHASE, exception_object->exception_class, exception_object,
       (struct _Unwind_Context *)&__wasm_lpad_context);

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to