summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-06-25 22:55:50 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-06-25 22:55:50 +0000
commita88d0edb495212d08357550a5bcbde9e924a9969 (patch)
tree8ab918eb2ca3eae257f141fa2a74511bac09e4d2 /lib/Transforms/Scalar/SimplifyLibCalls.cpp
parent540cda34b03388b510ded4546acfc7e276700daa (diff)
downloadllvm-a88d0edb495212d08357550a5bcbde9e924a9969.tar.gz
llvm-a88d0edb495212d08357550a5bcbde9e924a9969.tar.bz2
llvm-a88d0edb495212d08357550a5bcbde9e924a9969.tar.xz
do not set realloc() as NotAlias, since it can return the same pointer. This whole thing should be upgraded to use the MemoryBuiltin interface anyway..
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r--lib/Transforms/Scalar/SimplifyLibCalls.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
index 99b05389b2..1100d6dd77 100644
--- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp
+++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@ -1942,7 +1942,6 @@ void SimplifyLibCalls::inferPrototypeAttributes(Function &F) {
!FTy->getReturnType()->isPointerTy())
return;
setDoesNotThrow(F);
- setDoesNotAlias(F, 0);
setDoesNotCapture(F, 1);
} else if (Name == "read") {
if (FTy->getNumParams() != 3 ||