summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-09-11 03:37:42 +0000
committerJustin Bogner <mail@justinbogner.com>2014-09-11 03:37:42 +0000
commit560cbf506b3d2bd0e900bc7c37c816e9789985d8 (patch)
tree2a1ccd6e726dadff9f51d5136aa0c08fd817a98f /clang/lib/Analysis
parenta726ef12a411d379a3924f3db5fa4a43e520a324 (diff)
downloadbcm5719-llvm-560cbf506b3d2bd0e900bc7c37c816e9789985d8.tar.gz
bcm5719-llvm-560cbf506b3d2bd0e900bc7c37c816e9789985d8.zip
Fix a couple of -Wsign-compare warnings introduced in r217556
llvm-svn: 217569
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/ThreadSafetyTIL.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyTIL.cpp b/clang/lib/Analysis/ThreadSafetyTIL.cpp
index a15063631d9..9374733e8a3 100644
--- a/clang/lib/Analysis/ThreadSafetyTIL.cpp
+++ b/clang/lib/Analysis/ThreadSafetyTIL.cpp
@@ -200,7 +200,7 @@ int BasicBlock::topologicalFinalSort(SimpleArray<BasicBlock*>& Blocks, int ID) {
ID = DominatorNode.Parent->topologicalFinalSort(Blocks, ID);
for (auto *Pred : Predecessors)
ID = Pred->topologicalFinalSort(Blocks, ID);
- assert(ID < Blocks.size());
+ assert(static_cast<size_t>(ID) < Blocks.size());
BlockID = ID++;
Blocks[BlockID] = this;
return ID;
@@ -314,7 +314,7 @@ void SCFG::computeNormalForm() {
// Once dominators have been computed, the final sort may be performed.
int NumBlocks = Exit->topologicalFinalSort(Blocks, 0);
- assert(NumBlocks == Blocks.size());
+ assert(static_cast<size_t>(NumBlocks) == Blocks.size());
(void) NumBlocks;
// Renumber the instructions now that we have a final sort.
@@ -341,4 +341,3 @@ void SCFG::computeNormalForm() {
} // end namespace til
} // end namespace threadSafety
} // end namespace clang
-
OpenPOWER on IntegriCloud