diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-07-06 00:59:28 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-07-06 00:59:28 +0000 |
commit | cff2cf8e3a44ee9a3d32747ee415b5faf6706d01 (patch) | |
tree | 57d161f0eb0645df65c181eee7df21d90ae75223 /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | 69430609ffaa251438933076371737661c075090 (diff) | |
download | bcm5719-llvm-cff2cf8e3a44ee9a3d32747ee415b5faf6706d01.tar.gz bcm5719-llvm-cff2cf8e3a44ee9a3d32747ee415b5faf6706d01.zip |
Fix annotation of unlink. Should fix builder.
llvm-svn: 185738
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 8f46bd42e72..13668838c78 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -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()) |