summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-06-17 10:48:34 +0000
committerManuel Klimek <klimek@google.com>2013-06-17 10:48:34 +0000
commit52772bf35600fd6df26523576ea429adc24766f4 (patch)
tree2ac2ba9e59183334899f84d8a2fb6686ab82a79c /clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
parente4fb3dc7d47d5cc859adbf6b87191559bbfd8443 (diff)
downloadbcm5719-llvm-52772bf35600fd6df26523576ea429adc24766f4.tar.gz
bcm5719-llvm-52772bf35600fd6df26523576ea429adc24766f4.zip
Fix incorrectly finding 'executable' directories instead of files.
This broke for example the 'not' utility, if a directory called 'FileCheck' is executable and in the path before the actual 'FileCheck'. This patch steals the implementation of the "old" PathV1 canExecute implementation: - checks for R_OK (file readable): this is necessary for executing scripts; we should not regress here unless we have good reasons - checks for S_ISREG; if we want to get rid of this, we'd need to change all callers who already made the assumption when depending on Path V1. llvm-svn: 184074
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud