From cff2cf8e3a44ee9a3d32747ee415b5faf6706d01 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 6 Jul 2013 00:59:28 +0000 Subject: Fix annotation of unlink. Should fix builder. llvm-svn: 185738 --- llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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()) -- cgit v1.2.3