diff options
author | Serge Guelton <sguelton@quarkslab.com> | 2017-05-11 08:53:00 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@quarkslab.com> | 2017-05-11 08:53:00 +0000 |
commit | f4dc59ba8e00f12920391427591169dc616087ed (patch) | |
tree | faf1cdf98a266ad970ee1d533edbc1f1f685ca66 /llvm/lib/Support/Unix/Process.inc | |
parent | 1b421c259f7b1d0508188dca4cf7e098548ba360 (diff) | |
download | bcm5719-llvm-f4dc59ba8e00f12920391427591169dc616087ed.tar.gz bcm5719-llvm-f4dc59ba8e00f12920391427591169dc616087ed.zip |
Remove spurious cast of nullptr. NFC.
Conversion rules allow automatic casting of nullptr to any pointer type.
llvm-svn: 302780
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 16f8f5a98e5..1d0143c6716 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -347,7 +347,7 @@ static bool terminalHasColors(int fd) { MutexGuard G(*TermColorMutex); int errret = 0; - if (setupterm((char *)nullptr, fd, &errret) != 0) + if (setupterm(nullptr, fd, &errret) != 0) // Regardless of why, if we can't get terminfo, we shouldn't try to print // colors. return false; @@ -369,7 +369,7 @@ static bool terminalHasColors(int fd) { // Now extract the structure allocated by setupterm and free its memory // through a really silly dance. - struct term *termp = set_curterm((struct term *)nullptr); + struct term *termp = set_curterm(nullptr); (void)del_curterm(termp); // Drop any errors here. // Return true if we found a color capabilities for the current terminal. |