From da782f58ab7201e38d9fdf884d8acfad1c513ea2 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 20 Feb 2013 15:12:24 +0000 Subject: [PATCH] ADT/Optional.h: Appease msvc. llvm-svn: 175626 --- llvm/include/llvm/ADT/Optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.7.4