OSDN Git Service

[aarch64][mc] Don't lookup symbols when there is no symbol lookup callback
authorDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 21 Aug 2018 15:47:25 +0000 (15:47 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 21 Aug 2018 15:47:25 +0000 (15:47 +0000)
commitd10f51f59eafa8955f80520dc5e36fc9651496a6
tree73a8fecb5afff66d94882e579a9284dd6f559aca
parent836f774043ce96302dcaf9cbccba1849f38e28da
[aarch64][mc] Don't lookup symbols when there is no symbol lookup callback

Summary: When run under llvm-mc-disassemble-fuzzer, there is no symbol lookup callback so tryAddingSymbolicOperand() must fail gracefully instead of crashing

Reviewers: aemerson, javed.absar

Reviewed By: aemerson

Subscribers: lhames, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D51005

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340287 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.cpp