From 428ceaf90a83cf537de81f95f1a7d1013452ccaf Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Mon, 17 Nov 2014 09:29:33 +0000 Subject: [PATCH] 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)) llvm-svn: 222122 --- llvm/lib/Support/Windows/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 140aadc..365031c 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -561,7 +561,7 @@ mapped_file_region::mapped_file_region(const Twine &path, SmallVector 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. -- 2.7.4