summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2019-03-08 16:26:29 +0000
committerKristof Umann <dkszelethus@gmail.com>2019-03-08 16:26:29 +0000
commitb4cdfe8e7fe6d04a9e5e9cb574314367e3c3ba6d (patch)
tree336cd4d19858805f290fe9745ab3526f2b0c2f72 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parent748c139adebf58b144bf4ecc2a2333d9ad66ecdc (diff)
downloadbcm5719-llvm-b4cdfe8e7fe6d04a9e5e9cb574314367e3c3ba6d.tar.gz
bcm5719-llvm-b4cdfe8e7fe6d04a9e5e9cb574314367e3c3ba6d.zip
[analyzer] Fix infinite recursion in printing macros
In the commited testfile, macro expansion (the one implemented for the plist output) runs into an infinite recursion. The issue originates from the algorithm being faulty, as in #define value REC_MACRO_FUNC(value) the "value" is being (or at least attempted) expanded from the same macro. The solved this issue by gathering already visited macros in a set, which does resolve the crash, but will result in an incorrect macro expansion, that would preferably be fixed down the line. Patch by Tibor Brunner! Differential Revision: https://reviews.llvm.org/D57891 llvm-svn: 355705
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud