projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72a1394
)
silence gcc 4.9.1 warning in /llvm/lib/Support/Windows/Path.inc:564:39:
author
Yaron Keren
<yaron.keren@gmail.com>
Mon, 17 Nov 2014 09:29:33 +0000
(09:29 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Mon, 17 Nov 2014 09:29:33 +0000
(09:29 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Path.inc
b/lib/Support/Windows/Path.inc
index 140aadcfe66c0a026d9e9256e24ad1ce8480a999..365031cf150c44c86593e5b9d8c774fcb7d5a5de 100644
(file)
--- 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<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.