Revert r175626, "ADT/Optional.h: Appease msvc."
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 20 Feb 2013 15:52:44 +0000 (15:52 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 20 Feb 2013 15:52:44 +0000 (15:52 +0000)
Sorry, I didn't cover +Asserts, by accident. :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175633 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Optional.h

index e1fc2e8661ffb5870626698cca95740265065d45..6c91a13a5b5fb3fda8daca7578a1b58d1db95a85 100644 (file)
@@ -70,7 +70,7 @@ public:
 
   void reset() {
     if (hasVal) {
-      (**this).~T();
+      (*this)->~T();
       hasVal = false;
     }
   }