MFH: r552813

devel/llvm10: fix the patch added in r552764

A stray semicolon would cause llvm binaries to segfault as they
always get the wrong "executable path" on 12.1/11.4. Only test built on
-CURRENT, which doesn't use this path. =(

Pointy hat:	kevans
PR:		250478, 250448

Approved by:	ports-secteam (implicit, build fix)
This commit is contained in:
Kyle Evans 2020-10-20 13:25:18 +00:00
parent 5540b5d1ac
commit 3029c00b34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=552818

View File

@ -8,7 +8,7 @@
- switch (*(uintptr_t *)p++) {
- case AT_EXECPATH:
+ for (; (uintptr_t *)p != AT_NULL; p++) {
+ if (*(uintptr_t *)p++ == AT_EXECPATH);
+ if (*(uintptr_t *)p++ == AT_EXECPATH)
return *p;
- case AT_NULL:
- break;