[llvm-commits] [llvm] r164587 - /llvm/trunk/lib/Support/Windows/PathV2.inc

Nico Weber nicolasweber at gmx.de
Mon Sep 24 22:24:16 PDT 2012


Author: nico
Date: Tue Sep 25 00:24:16 2012
New Revision: 164587

URL: http://llvm.org/viewvc/llvm-project?rev=164587&view=rev
Log:
Fix a -Wparentheses warning in the mingw build

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

Modified: llvm/trunk/lib/Support/Windows/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/PathV2.inc?rev=164587&r1=164586&r2=164587&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Windows/PathV2.inc Tue Sep 25 00:24:16 2012
@@ -794,7 +794,7 @@
   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.





More information about the llvm-commits mailing list