aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2018-08-24 19:40:35 +0000
committerStephen Hines <srhines@google.com>2018-09-09 23:32:22 -0700
commit59f9f865303d483c502a6b10a7fcd842030cb577 (patch)
tree4a81d4eec328914823131caf517adc156c3bd539
parent4ea13f9861697a041d8486d1ada492e91552f50a (diff)
downloadllvm-59f9f865303d483c502a6b10a7fcd842030cb577.tar.gz
Use unique_ptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340642 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Object/ELFObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp
index 173cb30ca40..3f8984800e9 100644
--- a/lib/Object/ELFObjectFile.cpp
+++ b/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;