summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-02-20 15:12:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-02-20 15:12:24 +0000
commit767ad1c808c798191cf9470e7a0e546d3b472472 (patch)
treea83352b848c00c447c780419d2288eaead32bf9a /include
parentad4da0fc321230261b4d0387f0ec216eb8aa50ca (diff)
ADT/Optional.h: Appease msvc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175626 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 e55ad797c2..55e2d1a89a 100644
--- a/include/llvm/ADT/Optional.h
+++ b/include/llvm/ADT/Optional.h
@@ -70,7 +70,7 @@ public:
void reset() {
if (hasVal) {
- (*this)->~T();
+ (**this).~T();
hasVal = false;
}
}