commit | 3f8d08861b7ddd4eed675fcde19eb1d5fe38496f | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed Apr 26 00:48:28 2017 +0000 |
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed Apr 26 00:48:28 2017 +0000 |
tree | cb0f5f8255c1b2350a59354bec506294037bd865 | |
parent | ed89889572a99c7d1ec5bb556f3b4bfc7925891e [diff] |
[Support] Avoid UB in sys::fs::perms::operator~. NFC. This was exposed in r297945 and r301220: the intermediate complement is a 32-bit value, and casting it to 'perms' invokes UB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301373 91177308-0d34-0410-b5e6-96231b3b80d8