From 870d951bda8e5431ce3eafb51f5db9fe74b6c411 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 27 Aug 2014 11:47:52 +0000 Subject: Add an explicit cast to pacify implicit boolean conversion warnings. llvm-svn: 216539 --- llvm/lib/Support/Unix/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Unix') 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 -- cgit v1.1