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 | 323a3e653340781bad4c4c3245d9b25d5ab02685 (patch) | |
tree | 0a5fc4cc1604d612094fcd1beada8c67309c8652 /include | |
parent | 4d919438898d542850449235da7f6dc55e6ca152 (diff) | |
download | llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.tar.gz llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.tar.bz2 llvm-323a3e653340781bad4c4c3245d9b25d5ab02685.tar.xz |
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 5433056039..acfc335b80 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; } |