summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-07-28 23:45:15 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2016-07-28 23:45:15 +0000
commitd240a889ad7d9be18a83f56cc723f77f74e2f8de (patch)
tree68ce5adc95b8d58642e40132d086ad9ff4958440 /llvm/lib/IR/Function.cpp
parentc6af5ead8696f066fd5ec2978b9fc071ddf88a42 (diff)
downloadbcm5719-llvm-d240a889ad7d9be18a83f56cc723f77f74e2f8de.tar.gz
bcm5719-llvm-d240a889ad7d9be18a83f56cc723f77f74e2f8de.zip
[sanitizer] Simplify and future-proof maybeMarkSanitizerLibraryCallNoBuiltin().
Sanitizers set nobuiltin attribute on certain library functions to avoid a situation where such function is neither instrumented nor intercepted. At the moment the list of interesting functions is hardcoded. This change replaces it with logic based on TargetLibraryInfo::hasOptimizedCodegen and the presense of readnone function attribute (sanitizers are generally interested in memory behavior of library functions). This is expected to be a no-op change: the new logic matches exactly the same set of functions. r276771 (currently reverted) added mempcpy() to the list, breaking MSan tests. With this change, r276771 can be safely re-landed. llvm-svn: 277086
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud