Silence a warning, NFC

llvm-svn: 296917
This commit is contained in:
Krzysztof Parzyszek 2017-03-03 22:21:02 +00:00
parent 6241c2a6c1
commit 75464e174a
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ void llvm::set_thread_name(const Twine &Name) {
// Make sure the input is null terminated.
SmallString<64> Storage;
StringRef NameStr = Name.toNullTerminatedStringRef(Storage);
(void)NameStr;
#if defined(__linux__)
#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
#if HAVE_PTHREAD_SETNAME_NP