summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc/Core.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-04-19 18:38:15 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-04-19 18:38:15 +0000
commit46eab8d9fee52444915e336ce73374ba4c9e53d4 (patch)
tree26dfa950b088d8ec68a6e4008b485b8387f62c5c /llvm/lib/ExecutionEngine/Orc/Core.cpp
parent4ee16bfff7f0b7700c2c712d954d37c17200eab0 (diff)
downloadbcm5719-llvm-46eab8d9fee52444915e336ce73374ba4c9e53d4.tar.gz
bcm5719-llvm-46eab8d9fee52444915e336ce73374ba4c9e53d4.zip
[sanitizer] Minor refactor of some ReservedAddressRange functions
Summary: Some of the functions had spurious conditional statements and checks, and some intermediary variables that I feel made the code more complicated than it needs to be. Also, when unmapping the whole range, the range size would be 0, but the base was set to the address of the end of the range, which sounds prone to error. I think nulling out the base in this scenario is a better way to go. Reviewers: alekseyshl, flowerhack Reviewed By: alekseyshl Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D45775 llvm-svn: 330355
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/Core.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud