diff options
-rw-r--r-- | include/llvm/ADT/Optional.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index b0d09f6960..844e309050 100644 --- a/include/llvm/ADT/Optional.h +++ b/include/llvm/ADT/Optional.h @@ -72,7 +72,7 @@ public: void reset() { if (hasVal) { - (*this)->~T(); + (**this).~T(); hasVal = false; } } |