diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-08-27 11:47:52 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-08-27 11:47:52 +0000 |
commit | 870d951bda8e5431ce3eafb51f5db9fe74b6c411 (patch) | |
tree | 8e0ccc8d115289cdaeb443b0c14ec510bddd3300 /llvm/lib/Support/Unix/Path.inc | |
parent | a5a8a9adc8d87199962a6486f8062a5f45dafac5 (diff) | |
download | llvm-870d951bda8e5431ce3eafb51f5db9fe74b6c411.zip llvm-870d951bda8e5431ce3eafb51f5db9fe74b6c411.tar.gz llvm-870d951bda8e5431ce3eafb51f5db9fe74b6c411.tar.bz2 |
Add an explicit cast to pacify implicit boolean conversion warnings.
llvm-svn: 216539
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 24b0e21..2e0519b 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -663,7 +663,7 @@ static const char *getEnvTempDir() { static const char *getDefaultTempDir(bool ErasedOnReboot) { #ifdef P_tmpdir - if (P_tmpdir) + if ((bool)P_tmpdir) return P_tmpdir; #endif |