]> granicus.if.org Git - clang/commit
Update r228592 for when gethostname() returns an error
authorBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:13:11 +0000 (20:13 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 9 Feb 2015 20:13:11 +0000 (20:13 +0000)
commit4d5e3d60ab3579e8729221774c1d67d05322be5c
treeddd0e26e492bb6c549505424d03d0b82fcc40be7
parent0d60789e675ac750d9d8e3978e8e03cd610f9f45
Update r228592 for when gethostname() returns an error

If gethostname() is not successful, just skip adding the hostname to the
module hash.  And don't bother setting hostname[255] = 0, since if
gethostname() is successful, it will be null-terminated already (and if
it's not successful we don't read the string now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228601 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInvocation.cpp