summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/ADT/Optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h
index b0d09f69603..844e3090500 100644
--- a/llvm/include/llvm/ADT/Optional.h
+++ b/llvm/include/llvm/ADT/Optional.h
@@ -72,7 +72,7 @@ public:
void reset() {
if (hasVal) {
- (*this)->~T();
+ (**this).~T();
hasVal = false;
}
}
OpenPOWER on IntegriCloud