Skip to content

Commit 996b909

Browse files
committed
[llvm-objdump] Fix MC/ARM/arm-macho-calls.s
llvm-svn: 357880
1 parent 5f1e87a commit 996b909

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,6 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
12351235
bool CheckARMELFData = isArmElf(Obj) &&
12361236
std::get<2>(Symbols[SI]) != ELF::STT_OBJECT &&
12371237
!DisassembleAll;
1238-
MCInst Inst;
12391238
while (Index < End) {
12401239
// AArch64 ELF binaries can interleave data and text in the same
12411240
// section. We rely on the markers introduced to understand what we
@@ -1268,7 +1267,7 @@ static void disassembleObject(const Target *TheTarget, const ObjectFile *Obj,
12681267

12691268
// Disassemble a real instruction or a data when disassemble all is
12701269
// provided
1271-
Inst.clear();
1270+
MCInst Inst;
12721271
bool Disassembled = DisAsm->getInstruction(
12731272
Inst, Size, Bytes.slice(Index), SectionAddr + Index, DebugOut,
12741273
CommentStream);

0 commit comments

Comments
 (0)