Skip to content

Commit 3fd86c5

Browse files
committed
[mergefix]
1 parent 4b76bab commit 3fd86c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dmd/pragmasem.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ private bool pragmaMangleSemantic(Loc loc, Scope* sc, Expressions* args, Dsymbol
603603
dchar c = slice[i];
604604
if (c < 0x80)
605605
{
606-
if (c.isValidMangling)
606+
// LDC: allow leading "\1" to prevent target-specific prefix
607+
if (c.isValidMangling || (IN_LLVM && i == 0 && c == '\1'))
607608
{
608609
++i;
609610
continue;

0 commit comments

Comments
 (0)