https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/187741
>From 257c65605055e145638aeb851560ef4f4695762b Mon Sep 17 00:00:00 2001 From: Matheus Izvekov <[email protected]> Date: Fri, 20 Mar 2026 14:06:39 -0300 Subject: [PATCH] [clang] fix #187352 breakage on 32-bit platforms Fixes breakage reported here: https://github.com/llvm/llvm-project/pull/187352#issuecomment-4096403838 --- clang/lib/AST/TemplateBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/AST/TemplateBase.cpp b/clang/lib/AST/TemplateBase.cpp index ee5bb80fc36ee..f76c2e336dc86 100644 --- a/clang/lib/AST/TemplateBase.cpp +++ b/clang/lib/AST/TemplateBase.cpp @@ -750,8 +750,8 @@ clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo( clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo( ASTContext &Ctx, SourceLocation TrivialLoc) { if constexpr (EmbedLocInPointer) - Pointer = reinterpret_cast<void *>((TrivialLoc.getRawEncoding() + 1u) - << LowBitsRequired); + Pointer = reinterpret_cast<LocOrPointer>((TrivialLoc.getRawEncoding() + 1u) + << LowBitsRequired); else Pointer = new (Ctx) SourceLocation(TrivialLoc); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
