diff options
author | Balázs Kéri <1.int32@gmail.com> | 2022-06-23 10:24:45 +0200 |
---|---|---|
committer | Balázs Kéri <1.int32@gmail.com> | 2022-06-23 11:27:26 +0200 |
commit | 7dc81c624433627e6811801b5a7e53d77c216616 (patch) | |
tree | 89673b5b38acece17225bd17a8827723e13c2b73 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 20e6ada2fb94a97e677c5493dd6c1886d416c91a (diff) | |
download | llvm-7dc81c624433627e6811801b5a7e53d77c216616.zip llvm-7dc81c624433627e6811801b5a7e53d77c216616.tar.gz llvm-7dc81c624433627e6811801b5a7e53d77c216616.tar.bz2 |
[clang][analyzer] Fix StdLibraryFunctionsChecker 'mkdir' return value.
The functions 'mkdir', 'mknod', 'mkdirat', 'mknodat' return 0 on success
and -1 on failure. The checker modeled these functions with a >= 0
return value on success which is changed to 0 only. This fix makes
ErrnoChecker work better for these functions.
Reviewed By: steakhal
Differential Revision: https://reviews.llvm.org/D127277
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions