From: Benjamin Kramer Date: Tue, 16 Mar 2010 20:33:15 +0000 (+0000) Subject: str[r]chr returns its pointer argument so we cannot mark it as nocapture. Thanks... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2d7186ae6dc5ecc82849248deb8d8f4059c150ba;p=oota-llvm.git str[r]chr returns its pointer argument so we cannot mark it as nocapture. Thanks to Duncan for spotting my mistake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98671 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 9e263ddf91b..22f3628cf7c 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -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" ||