diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-18 18:34:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-18 18:34:22 +0000 |
commit | 627311cffd7e75d945e4ae3faadc7db99039ea6a (patch) | |
tree | 0a5fc4cc1604d612094fcd1beada8c67309c8652 /include | |
parent | b7309eef2d58e51607a7be8cd0f64678531ef9b8 (diff) | |
download | external_llvm-627311cffd7e75d945e4ae3faadc7db99039ea6a.zip external_llvm-627311cffd7e75d945e4ae3faadc7db99039ea6a.tar.gz external_llvm-627311cffd7e75d945e4ae3faadc7db99039ea6a.tar.bz2 |
Fix pasto in StringRef::count(char)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/StringRef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h index 5433056..acfc335 100644 --- a/include/llvm/ADT/StringRef.h +++ b/include/llvm/ADT/StringRef.h @@ -177,7 +177,7 @@ namespace llvm { size_t Count = 0; for (size_t i = 0, e = Length; i != e; ++i) if (Data[i] == C) - return i; + ++Count; return Count; } |