projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
105374f
)
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))
llvm-svn: 222122
llvm/lib/Support/Windows/Path.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Windows/Path.inc
b/llvm/lib/Support/Windows/Path.inc
index
140aadc
..
365031c
100644
(file)
--- 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.