Skip to content
Commit 385e5f7e authored by Alex Richardson's avatar Alex Richardson
Browse files

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 (8690a686)

Reviewed By: Anastasia
Differential Revision: https://reviews.llvm.org/D81608
parent 432f20bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment