[PATCH] D100150: [Sanitizers] Add a flag -f[no-]sanitize-merge-traps

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 9 02:00:01 PDT 2021


jansvoboda11 added a comment.

The `CodeGen` tests you added are failing pre-merge checks. This is most likely because we recently (D97462 <https://reviews.llvm.org/D97462>) started verifying that all all CC1 command line options can be serialized from a `CompilerInvocation` instance. To reproduce this locally, you'd need to build with assertions or manually set `-DCLANG_ROUND_TRIP_CC1_ARGS=ON` when building with CMake.

The solution would be to add complementary code that generates `"-f[no-]sanitize-merge-traps"` from `CodeGenOptions::SanitizeMergeTraps` in `CompilerInvocation::GenerateCodeGenArgs`.

More info is here https://clang.llvm.org/docs/InternalsManual.html#compiler-invocation and in the following sections.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100150/new/

https://reviews.llvm.org/D100150



More information about the cfe-commits mailing list