summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/deltas/Delta.cpp
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 01:51:56 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-07 01:51:56 +0000
commit5dbfca85419bda9d432ec43f7ea54d64ee2aab55 (patch)
treefd61c566e7fc3c643d78046a9d9c484d54e80c80 /llvm/tools/llvm-reduce/deltas/Delta.cpp
parent171dd2e6e5c9e17f0d06a790a5f4bf98aafd4919 (diff)
downloadbcm5719-llvm-5dbfca85419bda9d432ec43f7ea54d64ee2aab55.tar.gz
bcm5719-llvm-5dbfca85419bda9d432ec43f7ea54d64ee2aab55.zip
Added Tool as Dependency to tests & fixed warnings
Summary: Fixes http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/14002 and http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/35392/steps/build_Lld/logs/stdio Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65843 llvm-svn: 368117
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/Delta.cpp')
-rw-r--r--llvm/tools/llvm-reduce/deltas/Delta.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp
index 203b70ef333..2b0a2ddc84e 100644
--- a/llvm/tools/llvm-reduce/deltas/Delta.cpp
+++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp
@@ -85,7 +85,7 @@ static bool increaseGranularity(std::vector<Chunk> &Chunks) {
if (C.end - C.begin == 0)
NewChunks.push_back(C);
else {
- int Half = (C.begin + C.end) / 2;
+ unsigned Half = (C.begin + C.end) / 2;
NewChunks.push_back({C.begin, Half});
NewChunks.push_back({Half + 1, C.end});
SplitOne = true;
@@ -100,7 +100,7 @@ static bool increaseGranularity(std::vector<Chunk> &Chunks) {
}
void llvm::runDeltaPass(
- TestRunner &Test, int Targets,
+ TestRunner &Test, unsigned Targets,
std::function<std::unique_ptr<Module>(std::vector<Chunk>, Module *)>
ExtractChunksFromModule) {
if (!Targets)
OpenPOWER on IntegriCloud