diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-06-11 22:23:27 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-06-11 22:23:33 +0100 |
commit | 385e5f7e147fcf792085b365cc48380850612025 (patch) | |
tree | bd2fb39267a53d44d5882a0d8af78e3da2be7144 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 432f20bc1884897688986cecaa1818ffdb34cbbf (diff) | |
download | llvm-385e5f7e147fcf792085b365cc48380850612025.zip llvm-385e5f7e147fcf792085b365cc48380850612025.tar.gz llvm-385e5f7e147fcf792085b365cc48380850612025.tar.bz2 |
Fix incorrect call to ExprResult::get()
Res is already a ExprResult, so if we call .get(), we will convert an
ExprError() result into an unset result. I discovered this in our downstream
CHERI target where this resulted in a crash due to a NULL-dereference.
It appears that this was introduced in SVN revision 201788 (8690a6860a45ba36e39b4ff0dbe434195e125d11)
Reviewed By: Anastasia
Differential Revision: https://reviews.llvm.org/D81608
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions