[SystemZ][z/OS] Fix warning caused by umask returning a signed integer type
authorAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Wed, 12 May 2021 16:26:00 +0000 (12:26 -0400)
committerAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Wed, 12 May 2021 16:26:22 +0000 (12:26 -0400)
commitcbed6e5b2ff026e4d64de8f6ee19bc902b6e0e23
tree97bb9ced37d5c68c131118e96ccff6449062142b
parent5389a05836e74e3acab6dbda7e80ea43e3bc6304
[SystemZ][z/OS] Fix warning caused by umask returning a signed integer type

On z/OS, umask() returns an int because mode_t is type int, however it is being compared to an unsigned int. This patch fixes the following warning we see when compiling Path.cpp.

```
comparison of integers of different signs: 'const int' and 'const unsigned int'
```

Reviewed By: muiez

Differential Revision: https://reviews.llvm.org/D102326
llvm/unittests/Support/Path.cpp