summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-07-12 01:30:58 +0000
committerEtienne Bergeron <etienneb@google.com>2016-07-12 01:30:58 +0000
commitfb8ec515526354b3d7bc4f90e5ef91f993f940b6 (patch)
tree986d0fe31bb903588edf21db325fe37384671557
parent3e3f7da05ecff5798c252a3bba17138ffb636fcf (diff)
downloadcompiler-rt-fb8ec515526354b3d7bc4f90e5ef91f993f940b6.tar.gz
fix incorrect constant (from http://reviews.llvm.org/D22111)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@275136 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/interception/interception_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/interception/interception_win.cc b/lib/interception/interception_win.cc
index 5d7b6536c..96b567707 100644
--- a/lib/interception/interception_win.cc
+++ b/lib/interception/interception_win.cc
@@ -339,7 +339,7 @@ static uptr AllocateMemoryForTrampoline(uptr image_address, size_t size) {
// In 64-bits, the memory space must be allocated within 2G boundary.
uptr next_address = current->content + current->allocated_size;
if (next_address < image_address ||
- next_address - image_address >= 0x7FFFF0000)
+ next_address - image_address >= 0x7FFF0000)
continue;
#endif
// The space can be allocated in the current region.