[compiler-rt] r176932 - [Sanitizer] Fix a typo in function name

Alexey Samsonov samsonov at google.com
Tue Mar 12 23:55:03 PDT 2013


Author: samsonov
Date: Wed Mar 13 01:55:02 2013
New Revision: 176932

URL: http://llvm.org/viewvc/llvm-project?rev=176932&view=rev
Log:
[Sanitizer] Fix a typo in function name

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=176932&r1=176931&r2=176932&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed Mar 13 01:55:02 2013
@@ -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 *sta
   *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) {





More information about the llvm-commits mailing list