[clang] Fix printing of templated records. (PR #86339)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 03:47:49 PDT 2024
================
@@ -2303,11 +2303,6 @@ printTo(raw_ostream &OS, ArrayRef<TA> Args, const PrintingPolicy &Policy,
} else {
if (!FirstArg)
OS << Comma;
- if (!Policy.SuppressTagKeyword &&
- Argument.getKind() == TemplateArgument::Type &&
- isa<TagType>(Argument.getAsType()))
- OS << Argument.getAsType().getAsString();
- else
----------------
zahiraam wrote:
This code was wrongly added in https://github.com/intel/llvm/commit/6503b015d4a8 and was not reached by any tests. Some of our internal testing did hit this and realized the code was wrong. Created reproducers from internal tests to show that the code is wrong.
https://github.com/llvm/llvm-project/pull/86339
More information about the cfe-commits
mailing list