[llvm-commits] [llvm] r98671 - /llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Mar 16 13:33:15 PDT 2010


Author: d0k
Date: Tue Mar 16 15:33:15 2010
New Revision: 98671

URL: http://llvm.org/viewvc/llvm-project?rev=98671&view=rev
Log:
str[r]chr returns its pointer argument so we cannot mark it as nocapture. Thanks to Duncan for spotting my mistake.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp?rev=98671&r1=98670&r2=98671&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SimplifyLibCalls.cpp Tue Mar 16 15:33:15 2010
@@ -1408,7 +1408,6 @@
             continue;
           setOnlyReadsMemory(F);
           setDoesNotThrow(F);
-          setDoesNotCapture(F, 1);
         } else if (Name == "strcpy" ||
                    Name == "stpcpy" ||
                    Name == "strcat" ||





More information about the llvm-commits mailing list