backend\A64\exception_handler_posix.cpp: Fix typo in FindCodeBlockInfo

This commit is contained in:
SachinVin 2020-05-29 20:19:14 +05:30
parent 26ba798719
commit adeb4940dd

View File

@ -45,7 +45,7 @@ public:
private:
auto FindCodeBlockInfo(CodePtr PC) {
return std::find_if(code_block_infos.begin(), code_block_infos.end(),
[&](const CodeBlockInfo& x) { return x.block->GetRegion() <= PC && x.block->GetRegion() + x.block->GetRegionSize(); });
[&](const CodeBlockInfo& x) { return x.block->GetRegion() <= PC && x.block->GetRegion() + x.block->GetRegionSize() > PC; });
}
std::vector<CodeBlockInfo> code_block_infos;