reset errno to zero on entry to the application's main function. This fixes
authorChris Lattner <sabre@nondot.org>
Fri, 27 Apr 2007 17:02:33 +0000 (17:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 27 Apr 2007 17:02:33 +0000 (17:02 +0000)
commit020403209a86a3b4d210a4bc62b37ee5cf49dec8
tree7e0d1ce72717557fa9ac706383820c0a7eff4cf1
parentb35417c607afc5d12f2facedf19afd0d68669f64
reset errno to zero on entry to the application's main function.  This fixes
MultiSource/Applications/minisat in the JIT.

Note that the libsystem stuff should ideally never modify errno.  :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36508 91177308-0d34-0410-b5e6-96231b3b80d8
tools/lli/lli.cpp