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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp b/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
index 2f6ccb0620a..f089d586c49 100644
--- a/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
+++ b/llvm/tools/llvm-vtabledump/llvm-vtabledump.cpp
@@ -164,12 +164,12 @@ static void dumpInput(StringRef File) {
}
// Attempt to open the binary.
- ErrorOr<std::unique_ptr<Binary>> BinaryOrErr = createBinary(File);
+ ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(File);
if (std::error_code EC = BinaryOrErr.getError()) {
reportError(File, EC);
return;
}
- Binary &Binary = *BinaryOrErr.get();
+ Binary &Binary = *BinaryOrErr.get().getBinary();
if (Archive *Arc = dyn_cast<Archive>(&Binary))
dumpArchive(Arc);
OpenPOWER on IntegriCloud