Fix annotation of unlink. Should fix builder.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 6 Jul 2013 00:59:28 +0000 (00:59 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 6 Jul 2013 00:59:28 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185738 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionAttrs.cpp

index 8f46bd42e728582f0890ff149752eaeb1622d9a6..13668838c789e94ceb31eed85e12179664166dfc 100644 (file)
@@ -1343,7 +1343,7 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) {
       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())