Revert r64460. strtol and friends cannot be marked readonly, even with
authorDan Gohman <gohman@apple.com>
Fri, 17 Dec 2010 01:09:43 +0000 (01:09 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 17 Dec 2010 01:09:43 +0000 (01:09 +0000)
commitc32046e6eaffba890897da94ab8900d51bf9d18f
tree8220b7d279b1e43f6051fc11df9dc6f6c4cf5add
parent2d8e3e741f49baadfc72403de9c4b362a07af8d9
Revert r64460. strtol and friends cannot be marked readonly, even with
a null endptr argument, because they may write to errno.

This fixes a seflhost miscompile observed on Linux targets when TBAA
was enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122014 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll