From: NAKAMURA Takumi Date: Thu, 21 Feb 2013 02:32:25 +0000 (+0000) Subject: ADT/Optional.h: Appease msvc. It reapplies r175626. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b8ebc9e2444c73126bdc812165f808f22af10cfa;p=oota-llvm.git ADT/Optional.h: Appease msvc. It reapplies r175626. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175710 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h index b0d09f69603..844e3090500 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; } }