aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/Optional.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/Optional.h')
-rw-r--r--include/llvm/ADT/Optional.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h
index cc6065c062..e55ad797c2 100644
--- a/include/llvm/ADT/Optional.h
+++ b/include/llvm/ADT/Optional.h
@@ -62,13 +62,13 @@ public:
Optional &operator=(const Optional &O) {
if (!O)
- Reset();
+ reset();
else
*this = *O;
return *this;
}
- void Reset() {
+ void reset() {
if (hasVal) {
(*this)->~T();
hasVal = false;
@@ -76,7 +76,7 @@ public:
}
~Optional() {
- Reset();
+ reset();
}
const T* getPointer() const { assert(hasVal); return reinterpret_cast<const T*>(storage.buffer); }