File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -335,12 +335,11 @@ void SignalHandlerCheck::registerMatchers(MatchFinder *Finder) {
335335}
336336
337337void SignalHandlerCheck::check (const MatchFinder::MatchResult &Result) {
338- const auto *SignalCall = Result.Nodes .getNodeAs <CallExpr>(" register_call" );
339338 const auto *HandlerDecl =
340339 Result.Nodes .getNodeAs <FunctionDecl>(" handler_decl" );
341340 const auto *HandlerExpr = Result.Nodes .getNodeAs <DeclRefExpr>(" handler_expr" );
342- assert (SignalCall && HandlerDecl && HandlerExpr &&
343- " All of these should exist in a match here." );
341+ assert (Result. Nodes . getNodeAs <CallExpr>( " register_call " ) && HandlerDecl &&
342+ HandlerExpr && " All of these should exist in a match here." );
344343
345344 if (CG.size () <= 1 ) {
346345 // Call graph must be populated with the entire TU at the beginning.
You can’t perform that action at this time.
0 commit comments