summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2018-08-24 19:40:35 +0000
committerJoel Galenson <jgalenson@google.com>2018-08-24 19:40:35 +0000
commit90f976a46bc69038b6ea6812a30be089fbd2123d (patch)
tree8087a76a5845bc20731ca6f486417e592f7943d1 /llvm
parent892fc6b7f24cb022085e331c63b26574c011950d (diff)
downloadbcm5719-llvm-90f976a46bc69038b6ea6812a30be089fbd2123d.tar.gz
bcm5719-llvm-90f976a46bc69038b6ea6812a30be089fbd2123d.zip
Use unique_ptr.
llvm-svn: 340642
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Object/ELFObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp
index 173cb30ca40..3f8984800e9 100644
--- a/llvm/lib/Object/ELFObjectFile.cpp
+++ b/llvm/lib/Object/ELFObjectFile.cpp
@@ -351,7 +351,8 @@ ELFObjectFileBase::getPltAddresses() const {
default:
return {};
}
- const auto *MIA = T->createMCInstrAnalysis(T->createMCInstrInfo());
+ std::unique_ptr<const MCInstrAnalysis> MIA(
+ T->createMCInstrAnalysis(T->createMCInstrInfo()));
if (!MIA)
return {};
Optional<SectionRef> Plt = None, RelaPlt = None, GotPlt = None;
OpenPOWER on IntegriCloud