summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerUtil.h
diff options
context:
space:
mode:
authorMarcos Pividori <mpividori@google.com>2016-12-13 17:45:44 +0000
committerMarcos Pividori <mpividori@google.com>2016-12-13 17:45:44 +0000
commit463f8bdd0b85ea19177ff5e22d2fca34859b2234 (patch)
treea30dd1d19702a2442deb0a4b63b149b8a86e44fe /llvm/lib/Fuzzer/FuzzerUtil.h
parentc59b692c85e0b75ffb3168c2dbec2a0280886c9b (diff)
downloadbcm5719-llvm-463f8bdd0b85ea19177ff5e22d2fca34859b2234.tar.gz
bcm5719-llvm-463f8bdd0b85ea19177ff5e22d2fca34859b2234.zip
[libFuzzer] Properly use unsigned for Process ID.
Use unsigned for PID instead of signed int. GetCurrentProcessId() returns an unsigned (DWORD) so we must be sure we can deal with all possible values. I use a long unsigned to be sure it can hold a 32 bit unsigned (DWORD). Differential Revision: https://reviews.llvm.org/D27281 llvm-svn: 289558
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerUtil.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerUtil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h
index c237379b3ac..cac93cc141b 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.h
+++ b/llvm/lib/Fuzzer/FuzzerUtil.h
@@ -47,7 +47,7 @@ void SetSignalHandler(const FuzzingOptions& Options);
void SleepSeconds(int Seconds);
-int GetPid();
+unsigned long GetPid();
size_t GetPeakRSSMb();
OpenPOWER on IntegriCloud