summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-11-17 09:29:33 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-11-17 09:29:33 +0000
commit428ceaf90a83cf537de81f95f1a7d1013452ccaf (patch)
tree51804b9ce045f2046787759cb9c9b58691799f70 /llvm/lib/Support
parent105374fe5efa11c978da69417481d5a92f4890a1 (diff)
downloadbcm5719-llvm-428ceaf90a83cf537de81f95f1a7d1013452ccaf.tar.gz
bcm5719-llvm-428ceaf90a83cf537de81f95f1a7d1013452ccaf.zip
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
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index 140aadcfe66..365031cf150 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<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.
OpenPOWER on IntegriCloud