Skip to content

Commit 2b3e053

Browse files
committed
osthread.d: add callWithStackShell fallback
1 parent 07c9c8f commit 2b3e053

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/druntime/src/core/thread/osthread.d

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ version (LDC)
4444
{
4545
import ldc.sanitizers_optionally_linked;
4646
}
47+
48+
pragma(LDC_intrinsic, "llvm.eh.unwind.init")
49+
void llvm_unwind_init();
4750
}
4851

4952

@@ -1654,7 +1657,8 @@ in (fn)
16541657
}
16551658
else
16561659
{
1657-
static assert(false, "Architecture not supported.");
1660+
llvm_unwind_init();
1661+
sp = &sp;
16581662
}
16591663
}
16601664
else

0 commit comments

Comments
 (0)