silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:
authorYaron Keren <yaron.keren@gmail.com>
Mon, 17 Nov 2014 09:29:33 +0000 (09:29 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Mon, 17 Nov 2014 09:29:33 +0000 (09:29 +0000)
warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (ec = widenPath(path, path_utf16))

llvm-svn: 222122

llvm/lib/Support/Windows/Path.inc

index 140aadc..365031c 100644 (file)
@@ -561,7 +561,7 @@ mapped_file_region::mapped_file_region(const Twine &path,
   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.