summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/MachODump.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-21 04:01:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-21 04:01:19 +0000
commit9eaefa9786ac20da40966719f9920fb223d89ea8 (patch)
treea4e477bf792284dab5d52e216852e0b6202ee686 /llvm/tools/llvm-objdump/MachODump.cpp
parent593577a13a45ee5f7666f412ecbb1e6aa7269e78 (diff)
downloadbcm5719-llvm-9eaefa9786ac20da40966719f9920fb223d89ea8.tar.gz
bcm5719-llvm-9eaefa9786ac20da40966719f9920fb223d89ea8.zip
llvm-objdump: Fix use after free.
llvm-svn: 140237
Diffstat (limited to 'llvm/tools/llvm-objdump/MachODump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 7e3bb20d3e1..0daf9d4214a 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -346,11 +346,11 @@ void llvm::DisassembleInputMachO(StringRef Filename) {
StringRef DebugAbbrevSection, DebugInfoSection, DebugArangesSection,
DebugLineSection, DebugStrSection;
OwningPtr<DIContext> diContext;
+ OwningPtr<MachOObject> DSYMObj;
// Try to find debug info and set up the DIContext for it.
if (UseDbg) {
ArrayRef<Section> DebugSections = Sections;
std::vector<Section> DSYMSections;
- OwningPtr<MachOObject> DSYMObj;
// A separate DSym file path was specified, parse it as a macho file,
// get the sections and supply it to the section name parsing machinery.
OpenPOWER on IntegriCloud