From 767ad1c808c798191cf9470e7a0e546d3b472472 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 20 Feb 2013 15:12:24 +0000 Subject: ADT/Optional.h: Appease msvc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175626 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index e55ad79..55e2d1a 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; } } -- cgit v1.1