[llvm] r222122 - silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:

Yaron Keren yaron.keren at gmail.com
Mon Nov 17 01:29:34 PST 2014


Author: yrnkrn
Date: Mon Nov 17 03:29:33 2014
New Revision: 222122

URL: http://llvm.org/viewvc/llvm-project?rev=222122&view=rev
Log:
silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:
warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (ec = widenPath(path, path_utf16))


Modified:
    llvm/trunk/lib/Support/Windows/Path.inc

Modified: llvm/trunk/lib/Support/Windows/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Path.inc?rev=222122&r1=222121&r2=222122&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc (original)
+++ llvm/trunk/lib/Support/Windows/Path.inc Mon Nov 17 03:29:33 2014
@@ -561,7 +561,7 @@ mapped_file_region::mapped_file_region(c
   SmallVector<wchar_t, 128> path_utf16;
 
   // Convert path to UTF-16.
-  if (ec = widenPath(path, path_utf16))
+  if ((ec = widenPath(path, path_utf16)))
     return;
 
   // Get file handle for creating a file mapping.





More information about the llvm-commits mailing list