[llvm] [Sanitizer] Use DK_OptimizationRemarkMissed for DiagnosticInfoInstrumentation. (PR #106356)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 11:37:59 PDT 2024


================
@@ -32,7 +32,7 @@ class DiagnosticInfoInstrumentation : public DiagnosticInfo {
 public:
   DiagnosticInfoInstrumentation(const Twine &DiagMsg,
                                 DiagnosticSeverity Severity = DS_Warning)
-      : DiagnosticInfo(DK_Linker, Severity), Msg(DiagMsg) {}
+      : DiagnosticInfo(DK_OptimizationRemarkMissed, Severity), Msg(DiagMsg) {}
----------------
vitalybuka wrote:

The doc for enum says we need a new enum for each subcluss
Maybe add a new one, e.g DK_Instrumentation

https://github.com/llvm/llvm-project/pull/106356


More information about the llvm-commits mailing list