summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-04 20:20:34 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-04 20:20:34 +0000
commit3336f748a55135cae0d213a273760da96f5fd486 (patch)
treeef3bc9f99df8fbe7517f52000b67d4ead3aede2a /llvm/lib/Support/PathV2.cpp
parent75357bcd3940b9384854051eea8cd1a883d38304 (diff)
downloadbcm5719-llvm-3336f748a55135cae0d213a273760da96f5fd486.tar.gz
bcm5719-llvm-3336f748a55135cae0d213a273760da96f5fd486.zip
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. llvm-svn: 120916
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
-rw-r--r--llvm/lib/Support/PathV2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp
index edb3accbb5f..2c1d92dbcac 100644
--- a/llvm/lib/Support/PathV2.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud