From c2eafa1ce3e01812d9ad2b61ac41290bf2ae532c 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)) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222122 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 140aadcfe66..365031cf150 100644 --- a/lib/Support/Windows/Path.inc +++ b/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.34.1