diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2013-12-22 12:04:23 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2013-12-22 12:04:23 +0000 |
| commit | 4ef09de13e104754675ca53f4950536a0cb772a2 (patch) | |
| tree | 661ea99902ade2e181c2d67405983a83dc3040df /lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 1a7ebaaa3d90eecfd5209a832f4748eff6686fe2 (diff) | |
| download | llvm-4ef09de13e104754675ca53f4950536a0cb772a2.tar.gz llvm-4ef09de13e104754675ca53f4950536a0cb772a2.tar.bz2 llvm-4ef09de13e104754675ca53f4950536a0cb772a2.tar.xz | |
The count() function for STL datatypes returns unsigned, even
where it's only bool-like 1/0 result like std::set.count().
Some of the LLVM ADT already return unsigned count(), while
others return bool count().
This patch modifies SmallPtrSet, SmallSet, SparseSet count()
to return unsigned instead of bool:
1 instead of true
0 instead of false
More ADT to follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
