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.