llvm-objdump: Fix use after free.

llvm-svn: 140237
This commit is contained in:
Benjamin Kramer 2011-09-21 04:01:19 +00:00
parent 593577a13a
commit 9eaefa9786
1 changed files with 1 additions and 1 deletions

View File

@ -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.