summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-13 06:55:02 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-13 06:55:02 +0000
commitd38aceda4e5a915de64582e275c6d6e693b0702c (patch)
treed7e139e440d884bcd7a6e6a74d5419ed521162b3 /compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
parent06d3aa4884a76cd71de7259d9a704349438cabec (diff)
downloadbcm5719-llvm-d38aceda4e5a915de64582e275c6d6e693b0702c.tar.gz
bcm5719-llvm-d38aceda4e5a915de64582e275c6d6e693b0702c.zip
[Sanitizer] Fix a typo in function name
llvm-svn: 176932
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_linux.cc')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_linux.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
index 3f32ecc54e0..cd6adc7aecb 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
@@ -381,7 +381,7 @@ static uptr ParseHex(char **str) {
return x;
}
-static bool IsOnOf(char c, char c1, char c2) {
+static bool IsOneOf(char c, char c1, char c2) {
return c == c1 || c == c2;
}
@@ -407,16 +407,16 @@ bool MemoryMappingLayout::Next(uptr *start, uptr *end, uptr *offset,
*end = ParseHex(&current_);
CHECK_EQ(*current_++, ' ');
uptr local_protection = 0;
- CHECK(IsOnOf(*current_, '-', 'r'));
+ CHECK(IsOneOf(*current_, '-', 'r'));
if (*current_++ == 'r')
local_protection |= kProtectionRead;
- CHECK(IsOnOf(*current_, '-', 'w'));
+ CHECK(IsOneOf(*current_, '-', 'w'));
if (*current_++ == 'w')
local_protection |= kProtectionWrite;
- CHECK(IsOnOf(*current_, '-', 'x'));
+ CHECK(IsOneOf(*current_, '-', 'x'));
if (*current_++ == 'x')
local_protection |= kProtectionExecute;
- CHECK(IsOnOf(*current_, 's', 'p'));
+ CHECK(IsOneOf(*current_, 's', 'p'));
if (*current_++ == 's')
local_protection |= kProtectionShared;
if (protection) {
OpenPOWER on IntegriCloud