From d3808de26ac00b36263aac73d8f64432472dff88 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 12 May 2019 09:03:58 -0700 Subject: [PATCH] Set Diag::concerned if any of its Notes is concerned --- src/sema_manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sema_manager.cc b/src/sema_manager.cc index d8e7608e..32628303 100644 --- a/src/sema_manager.cc +++ b/src/sema_manager.cc @@ -285,6 +285,8 @@ public: } else { Note &n = last->notes.emplace_back(); fillDiagBase(n); + if (concerned) + last->concerned = true; } } else { Flush();