================
@@ -3315,10 +3315,8 @@ void VFTableBuilder::dumpLayout(raw_ostream &Out) {
default:
DiagnosticsEngine &Diags = Context.getDiagnostics();
- unsigned DiagID = Diags.getCustomDiagID(
- DiagnosticsEngine::Error,
- "Unexpected vftable component type %0 for component number %1");
- Diags.Report(MostDerivedClass->getLocation(), DiagID)
+ Diags.Report(MostDerivedClass->getLocation(),
+ diag::err_unexpected_vftable_component)
<< I << Component.getKind();
----------------
Sirraide wrote:
I know this was like this before, but are these swapped? I’d imagine the
‘component type’ should be `Component.getKind()` and the ‘component number’
should be `I`.
https://github.com/llvm/llvm-project/pull/172532
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits