Correct unique_ptr passing in MCObjectDisassembler::setFallbackRegion
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 2 Sep 2014 17:29:51 +0000 (17:29 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 2 Sep 2014 17:29:51 +0000 (17:29 +0000)
commit7bda61329760b44908626725e9439efd16d7ec0a
tree7d8c03bc2f7fc2b271fce6a170ca8b8ca70c1720
parent251da88db88aba0393470694a1a2739f0daf3182
Correct unique_ptr passing in MCObjectDisassembler::setFallbackRegion

Rather than passing by lvalue reference, pass by value to ensure that
the caller provides an rvalue (and use move assignment, rather than
release+reset, to assign to the member variable)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216916 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectDisassembler.h