summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp')
-rw-r--r--llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp b/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
index d1d8aa4082b..2f6ccb0620a 100644
--- a/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
+++ b/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
@@ -169,11 +169,11 @@ static void dumpInput(StringRef File) {
reportError(File, EC);
return;
}
- std::unique_ptr<Binary> Binary = std::move(BinaryOrErr.get());
+ Binary &Binary = *BinaryOrErr.get();
- if (Archive *Arc = dyn_cast<Archive>(Binary.get()))
+ if (Archive *Arc = dyn_cast<Archive>(&Binary))
dumpArchive(Arc);
- else if (ObjectFile *Obj = dyn_cast<ObjectFile>(Binary.get()))
+ else if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary))
dumpVTables(Obj);
else
reportError(File, vtabledump_error::unrecognized_file_format);
OpenPOWER on IntegriCloud