aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/Optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h
index e55ad797c2..55e2d1a89a 100644
--- a/include/llvm/ADT/Optional.h
+++ b/include/llvm/ADT/Optional.h
@@ -70,7 +70,7 @@ public:
void reset() {
if (hasVal) {
- (*this)->~T();
+ (**this).~T();
hasVal = false;
}
}