[llvm] r175626 - ADT/Optional.h: Appease msvc.
NAKAMURA Takumi
geek4civic at gmail.com
Wed Feb 20 07:12:24 PST 2013
Author: chapuni
Date: Wed Feb 20 09:12:24 2013
New Revision: 175626
URL: http://llvm.org/viewvc/llvm-project?rev=175626&view=rev
Log:
ADT/Optional.h: Appease msvc.
Modified:
llvm/trunk/include/llvm/ADT/Optional.h
Modified: llvm/trunk/include/llvm/ADT/Optional.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Optional.h?rev=175626&r1=175625&r2=175626&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Optional.h (original)
+++ llvm/trunk/include/llvm/ADT/Optional.h Wed Feb 20 09:12:24 2013
@@ -70,7 +70,7 @@ public:
void reset() {
if (hasVal) {
- (*this)->~T();
+ (**this).~T();
hasVal = false;
}
}
More information about the llvm-commits
mailing list