================ @@ -66,6 +66,11 @@ using namespace clang; using namespace CodeGen; using namespace llvm; +static llvm::cl::opt<bool> ClSanitizeAlignmentBuiltin( + "sanitize-alignment-builtin", llvm::cl::Hidden, + llvm::cl::desc("Instrument builtin functions for -fsanitize=alignment"), + llvm::cl::init(true)); + ---------------- zygoloid wrote:
Why are you using a `cl::opt` here rather than a proper `CodeGenOption`? We generally don't use `cl::opt` in clang and want our options to be provided via our option structs instead, so that clang can be used as a library. https://github.com/llvm/llvm-project/pull/69240 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits