commit | 60ceb6ec151eb3cad0de6559de247be972cd94d6 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sat Jul 06 00:59:28 2013 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sat Jul 06 00:59:28 2013 +0000 |
tree | 81e8b0562038849ca5a3cc2aeb658076f6cd7a85 | |
parent | fa4133b1d10d5190f0efc5fde2626f509c5b3476 [diff] [blame] |
Fix annotation of unlink. Should fix builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185738 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 8f46bd4..1366883 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1343,7 +1343,7 @@ 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())