summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-10 11:15:39 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-10 11:15:39 +0000
commiteb79d2da8a530d6fdadab581da85fd3e6a2615e2 (patch)
tree3c0fd9d82fa684d124b181a8d0aa60f037280312
parent811a031c36f82adfeb6c3f1b8d0d41298fd4d941 (diff)
downloadbcm5719-llvm-eb79d2da8a530d6fdadab581da85fd3e6a2615e2.tar.gz
bcm5719-llvm-eb79d2da8a530d6fdadab581da85fd3e6a2615e2.zip
Path - fix uninitialized variable warnings. NFCI.
-rw-r--r--llvm/include/llvm/Support/Path.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/include/llvm/Support/Path.h b/llvm/include/llvm/Support/Path.h
index 4514761ad53..488f17427fd 100644
--- a/llvm/include/llvm/Support/Path.h
+++ b/llvm/include/llvm/Support/Path.h
@@ -52,10 +52,10 @@ enum class Style { windows, posix, native };
class const_iterator
: public iterator_facade_base<const_iterator, std::input_iterator_tag,
const StringRef> {
- StringRef Path; ///< The entire path.
- StringRef Component; ///< The current component. Not necessarily in Path.
- size_t Position; ///< The iterators current position within Path.
- Style S; ///< The path style to use.
+ StringRef Path; ///< The entire path.
+ StringRef Component; ///< The current component. Not necessarily in Path.
+ size_t Position = 0; ///< The iterators current position within Path.
+ Style S = Style::native; ///< The path style to use.
// An end iterator has Position = Path.size() + 1.
friend const_iterator begin(StringRef path, Style style);
@@ -78,10 +78,10 @@ public:
class reverse_iterator
: public iterator_facade_base<reverse_iterator, std::input_iterator_tag,
const StringRef> {
- StringRef Path; ///< The entire path.
- StringRef Component; ///< The current component. Not necessarily in Path.
- size_t Position; ///< The iterators current position within Path.
- Style S; ///< The path style to use.
+ StringRef Path; ///< The entire path.
+ StringRef Component; ///< The current component. Not necessarily in Path.
+ size_t Position = 0; ///< The iterators current position within Path.
+ Style S = Style::native; ///< The path style to use.
friend reverse_iterator rbegin(StringRef path, Style style);
friend reverse_iterator rend(StringRef path);
OpenPOWER on IntegriCloud