From: NAKAMURA Takumi Date: Wed, 20 Feb 2013 15:12:24 +0000 (+0000) Subject: ADT/Optional.h: Appease msvc. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da782f58ab7201e38d9fdf884d8acfad1c513ea2;p=platform%2Fupstream%2Fllvm.git ADT/Optional.h: Appease msvc. llvm-svn: 175626 --- diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h index e55ad79..55e2d1a 100644 --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -70,7 +70,7 @@ public: void reset() { if (hasVal) { - (*this)->~T(); + (**this).~T(); hasVal = false; } }