mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 11:19:41 +00:00
Don't mark all args to strtod and friends as nocapture.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1c321a89a
commit
b7c9eeeede
@ -1583,16 +1583,9 @@ bool SimplifyLibCalls::doInitialization(Module &M) {
|
||||
setDoesNotCapture(F, 2);
|
||||
} else if ((NameLen == 6 && !strcmp(NameStr, "strcmp")) ||
|
||||
(NameLen == 6 && !strcmp(NameStr, "strspn")) ||
|
||||
(NameLen == 6 && !strcmp(NameStr, "strtol")) ||
|
||||
(NameLen == 6 && !strcmp(NameStr, "strtod")) ||
|
||||
(NameLen == 6 && !strcmp(NameStr, "strtof")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strtoul")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strtoll")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strtold")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strncmp")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strcspn")) ||
|
||||
(NameLen == 7 && !strcmp(NameStr, "strcoll")) ||
|
||||
(NameLen == 8 && !strcmp(NameStr, "strtoull")) ||
|
||||
(NameLen == 10 && !strcmp(NameStr, "strcasecmp")) ||
|
||||
(NameLen == 11 && !strcmp(NameStr, "strncasecmp"))) {
|
||||
if (FTy->getNumParams() < 2 ||
|
||||
|
Loading…
Reference in New Issue
Block a user