1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

str[r]chr returns its pointer argument so we cannot mark it as nocapture. Thanks to Duncan for spotting my mistake.

llvm-svn: 98671
This commit is contained in:
Benjamin Kramer 2010-03-16 20:33:15 +00:00
parent 4edab939bb
commit 94c90c236b

View File

@ -1408,7 +1408,6 @@ bool SimplifyLibCalls::doInitialization(Module &M) {
continue;
setOnlyReadsMemory(F);
setDoesNotThrow(F);
setDoesNotCapture(F, 1);
} else if (Name == "strcpy" ||
Name == "stpcpy" ||
Name == "strcat" ||