================
@@ -669,8 +670,11 @@ class TrivialFunctionAnalysisVisitor
         }
       }
       const Stmt *Body = D->getBody();
-      if (!Body)
+      if (!Body) {
+        if (FnDecl && FnDecl->isThisDeclarationADefinition())
----------------
rniwa wrote:

Hm... I guess this isn't quite right per our discussion in slack.

https://github.com/llvm/llvm-project/pull/201544
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to