https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/187741
Fixes breakage reported here: https://github.com/llvm/llvm-project/pull/187352#issuecomment-4096403838 >From ca00ab9c8d4ffb97ea578d39dfe4aaa75722b342 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/TemplateBase.cpp b/clang/lib/AST/TemplateBase.cpp index ee5bb80fc36ee..77443dd19e244 100644 --- a/clang/lib/AST/TemplateBase.cpp +++ b/clang/lib/AST/TemplateBase.cpp @@ -750,7 +750,7 @@ clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo( clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo( ASTContext &Ctx, SourceLocation TrivialLoc) { if constexpr (EmbedLocInPointer) - Pointer = reinterpret_cast<void *>((TrivialLoc.getRawEncoding() + 1u) + 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
