================
@@ -3647,7 +3647,7 @@ class FailedBooleanConditionPrinterHelper : public 
PrinterHelper {
       DR->getQualifier().print(OS, Policy, true);
       // Then print the decl itself.
       const ValueDecl *VD = DR->getDecl();
-      OS << VD->getName();
+      OS << VD->getDeclName();
----------------
erichkeane wrote:

According to the `getDeclName` diagnostics:

```
Note that generally in diagnostics, the non-null NamedDecl* itself should be 
sent into the diagnostic instead of using the result of getDeclName()
```

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

Reply via email to