summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-02-21 02:32:25 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-02-21 02:32:25 +0000
commitb8ebc9e2444c73126bdc812165f808f22af10cfa (patch)
tree25f1e549aeb77f254bc8b181e35e89e8017b446b /include
parent561823009b41e144f49cc00f1dc3e55b8649d400 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/Optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/Optional.h b/include/llvm/ADT/Optional.h
index b0d09f6960..844e309050 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;
}
}