[llvm] r185738 - Fix annotation of unlink. Should fix builder.

Nick Lewycky nicholas at mxc.ca
Fri Jul 5 17:59:28 PDT 2013


Author: nicholas
Date: Fri Jul  5 19:59:28 2013
New Revision: 185738

URL: http://llvm.org/viewvc/llvm-project?rev=185738&view=rev
Log:
Fix annotation of unlink. Should fix builder.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=185738&r1=185737&r2=185738&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Fri Jul  5 19:59:28 2013
@@ -1343,7 +1343,7 @@ bool FunctionAttrs::inferPrototypeAttrib
       return false;
     setDoesNotThrow(F);
     setDoesNotCapture(F, 1);
-    setOnlyReadsMemory(F, 2);
+    setOnlyReadsMemory(F, 1);
     break;
   case LibFunc::unsetenv:
     if (FTy->getNumParams() != 1 || !FTy->getParamType(0)->isPointerTy())





More information about the llvm-commits mailing list