OSDN Git Service

Fix a -Wparentheses warning in the mingw build
authorNico Weber <nicolasweber@gmx.de>
Tue, 25 Sep 2012 05:24:16 +0000 (05:24 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 25 Sep 2012 05:24:16 +0000 (05:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164587 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/PathV2.inc

index 696768b..3dfac66 100644 (file)
@@ -794,7 +794,7 @@ mapped_file_region::mapped_file_region(const Twine &path,
   SmallVector<wchar_t, 128> path_utf16;
 
   // Convert path to UTF-16.
-  if (ec = UTF8ToUTF16(path.toStringRef(path_storage), path_utf16))
+  if ((ec = UTF8ToUTF16(path.toStringRef(path_storage), path_utf16)))
     return;
 
   // Get file handle for creating a file mapping.