[llvm] r175626 - ADT/Optional.h: Appease msvc.

David Blaikie dblaikie at gmail.com
Wed Feb 20 08:01:36 PST 2013


On Feb 20, 2013 7:15 AM, "NAKAMURA Takumi" <geek4civic at gmail.com> wrote:
>
> 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.

This is a fix to a break I introduced in r175580. Sorry about that & thanks
for the fix, Takumi.

- David

>
> 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;
>      }
>    }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130220/e7b16308/attachment.html>


More information about the llvm-commits mailing list