[ADT] Teach FoldingSet to be movable.
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Aug 2015 23:17:27 +0000 (23:17 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Aug 2015 23:17:27 +0000 (23:17 +0000)
commitdf8fbfc774ec06f4d2f8fd3e1b917d45cdac8fde
treebe98bf8eb0c9e2dc14ac39ef9a89db337aebfcec
parent28d23b88be9cd24e1ef83ca1ae2d8d8740c918c3
[ADT] Teach FoldingSet to be movable.

This is a very minimal move support - it leaves the moved-from object in
a zombie state that is only valid for destruction and move assignment.
This seems fine to me, and leaving it in the default constructed state
would require adding more state to the object and potentially allocating
memory (!!!) and so seems like a Bad Idea.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245192 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/FoldingSet.h
lib/Support/FoldingSet.cpp