[PATCH] D44064: [Driver] Automatically disable incompatible default sanitizers

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 16:18:32 PST 2018


vitalybuka added inline comments.


================
Comment at: clang/lib/Driver/SanitizerArgs.cpp:369
   // Check that LTO is enabled if we need it.
   if ((Kinds & NeedsLTO) && !D.isUsingLTO()) {
     D.Diag(diag::err_drv_argument_only_allowed_with)
----------------
Is this change needed to avoid errors at "Kinds & NeedsLTO" and KindsToDiagnose?
Could you create a test for this change?


Repository:
  rC Clang

https://reviews.llvm.org/D44064





More information about the cfe-commits mailing list