diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2022-08-22 16:25:59 -0700 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2022-08-24 15:52:31 -0700 |
commit | e1dcd4ba444b0aaac05c399670d870925cef4459 (patch) | |
tree | 2fa29645393d40f3e277b3ee419c682df13b68e4 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | cff5bef948c91e4919de8a5fb9765e0edc13f3de (diff) | |
download | llvm-e1dcd4ba444b0aaac05c399670d870925cef4459.zip llvm-e1dcd4ba444b0aaac05c399670d870925cef4459.tar.gz llvm-e1dcd4ba444b0aaac05c399670d870925cef4459.tar.bz2 |
[compiler-rt][builtins] Add compiler flags to catch potential errors
that can lead to security vulnerabilities
Also, fix a few places that were causing -Wshadow and
-Wformat-nonliteral warnings to be emitted.
This reapplies the patch that was reverted in 0d66dc57e8c7 because it
broke a few bots.
I made changes so that cmake checks whether some of the flags are
supported by the compiler that is used before adding them to the list.
Also, I moved function add_security_warnings to CompilerRTUtils.cmake so
that it is defined before it's used.
Differential Revision: https://reviews.llvm.org/D131714
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions