[clang] fix(clang): Fix miscompile for string literals. (PR #202837)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 10 11:47:29 PDT 2026
================
@@ -1916,6 +1917,12 @@ TemplateInstantiator::TransformPredefinedExpr(PredefinedExpr *E) {
return getSema().BuildPredefinedExpr(E->getLocation(), E->getIdentKind());
}
+ExprResult TemplateInstantiator::TransformStringLiteral(StringLiteral *E) {
+ return StringLiteral::Create(
----------------
shafik wrote:
So I see in the summary you say "When the array bounds depend on the template parameter" how is this enforced here? You should add those missing details in the summary.
https://github.com/llvm/llvm-project/pull/202837
More information about the cfe-commits
mailing list