summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-06-20 10:26:56 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-06-20 10:26:56 +0000
commit6d3194f7d568ea10923560b45cf81082bf313f4a (patch)
tree5b1b02cc3008fff96b713fd06cf7c4b3c7b16b73 /llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
parent5dc2934ba24e01994a2c34e388609f1007d4dca0 (diff)
downloadbcm5719-llvm-6d3194f7d568ea10923560b45cf81082bf313f4a.tar.gz
bcm5719-llvm-6d3194f7d568ea10923560b45cf81082bf313f4a.zip
The count() function for STL datatypes returns unsigned, even where it's
only 1/0 result like std::set. Some of the LLVM ADT already return unsigned count(), while others still return bool count(). In continuation to r197879, this patch modifies DenseMap, DenseSet, ScopedHashTable, ValueMap:: count() to return size_type instead of bool, 1 instead of true and 0 instead of false. size_type is typedef-ed locally within each class to size_t. http://reviews.llvm.org/D4018 Reviewed by dblaikie. llvm-svn: 211350
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
index 2212941861b..6a5c431d4fd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
@@ -308,7 +308,7 @@ void WinCodeViewLineTables::endFunction(const MachineFunction *MF) {
return;
const Function *GV = MF->getFunction();
- assert(FnDebugInfo.count(GV) == true);
+ assert(FnDebugInfo.count(GV));
assert(CurFn == &FnDebugInfo[GV]);
if (CurFn->Instrs.empty()) {
OpenPOWER on IntegriCloud