summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-18 18:34:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-18 18:34:22 +0000
commit323a3e653340781bad4c4c3245d9b25d5ab02685 (patch)
tree0a5fc4cc1604d612094fcd1beada8c67309c8652 /include
parent4d919438898d542850449235da7f6dc55e6ca152 (diff)
downloadllvm-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.h2
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;
}