diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-12-04 20:20:34 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-12-04 20:20:34 +0000 |
commit | a6091be84c0ee838fb117b9cfb8eb9c156d44fad (patch) | |
tree | 08a55a91727f96bfbf4ca06a56179b5fb5554f52 /lib/Support/PathV2.cpp | |
parent | 9d425e7687c1701702a2874e09034ff1e573a769 (diff) |
Silence 'may be used uninitialized in this function' warnings. Static analysis
may determine that they cannot be used uninitialized. But that might be a bit
too much for the compiler to determine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r-- | lib/Support/PathV2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index edb3accbb5..2c1d92dbca 100644 --- a/lib/Support/PathV2.cpp +++ b/lib/Support/PathV2.cpp @@ -400,7 +400,7 @@ error_code append(SmallVectorImpl<char> &path, const Twine &a, i != e; ++i) { bool path_has_sep = !path.empty() && is_separator(path[path.size() - 1]); bool component_has_sep = !i->empty() && is_separator((*i)[0]); - bool is_root_name; + bool is_root_name = false; if (error_code ec = has_root_name(*i, is_root_name)) return ec; if (path_has_sep) { @@ -427,7 +427,7 @@ error_code append(SmallVectorImpl<char> &path, const Twine &a, error_code make_absolute(SmallVectorImpl<char> &path) { StringRef p(path.data(), path.size()); - bool rootName, rootDirectory; + bool rootName = false, rootDirectory = false; if (error_code ec = has_root_name(p, rootName)) return ec; if (error_code ec = has_root_directory(p, rootDirectory)) return ec; |