aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc2
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