[SaveAndRestore] Upgrade this to support non-copyable types.
authorChris Lattner <clattner@nondot.org>
Fri, 14 Oct 2022 05:01:14 +0000 (22:01 -0700)
committerChris Lattner <clattner@nondot.org>
Fri, 14 Oct 2022 15:14:12 +0000 (08:14 -0700)
commit1dee803afab1afdd122f217680dbbd35826799a3
tree82651c6b2037c5438f9da0798f54b517997fc9ce
parent84a9ec2ff1ee97fd7e8ed988f5e7b197aab84a7b
[SaveAndRestore] Upgrade this to support non-copyable types.

This adds a constructor and upgrades the dtor to work with
move-only types.

Differential Revision: https://reviews.llvm.org/D135940
llvm/include/llvm/Support/SaveAndRestore.h