[esnacc-dev] [PATCH 2/4] c++-backend: PrintXML format string error
Aaron Conole
aconole at bytheb.org
Wed Dec 14 15:24:48 UTC 2016
Straight-forward.
Fixes: b9d213af1053 ("cxx-lib: PrintXML cleanups")
Signed-off-by: Aaron Conole <aconole at bytheb.org>
---
compiler/back-ends/c++-gen/gen-code.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/compiler/back-ends/c++-gen/gen-code.c b/compiler/back-ends/c++-gen/gen-code.c
index 6c05ddf..0e4e991 100644
--- a/compiler/back-ends/c++-gen/gen-code.c
+++ b/compiler/back-ends/c++-gen/gen-code.c
@@ -3752,8 +3752,7 @@ PrintCxxSetDefCode (FILE *src, FILE *hdr, ModuleList *mods, Module *m,
fprintf(src, " const char *tagName = typeName();\n");
fprintf(src, " if (lpszTitle) {\n");
fprintf(src, " tagName = lpszTitle;\n");
- fprintf(src, " os << \"<\" << tagName << \">\";\n",
- td->cxxTypeDefInfo->className);
+ fprintf(src, " os << \"<\" << tagName << \">\";\n");
FOR_EACH_LIST_ELMT (e, set->basicType->a.set) {
const char *fieldString = "%s";
if (e->type->cxxTypeRefInfo->isPtr) {
--
2.7.4
More information about the dev
mailing list