[llvm] r216539 - Add an explicit cast to pacify implicit boolean conversion warnings.
Benjamin Kramer
benny.kra at googlemail.com
Wed Aug 27 04:47:53 PDT 2014
Author: d0k
Date: Wed Aug 27 06:47:52 2014
New Revision: 216539
URL: http://llvm.org/viewvc/llvm-project?rev=216539&view=rev
Log:
Add an explicit cast to pacify implicit boolean conversion warnings.
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=216539&r1=216538&r2=216539&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Wed Aug 27 06:47:52 2014
@@ -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
More information about the llvm-commits
mailing list