llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Matheus Izvekov (mizvekov)

<details>
<summary>Changes</summary>

Fixes breakage reported here: 
https://github.com/llvm/llvm-project/pull/187352#issuecomment-4096403838

---
Full diff: https://github.com/llvm/llvm-project/pull/187741.diff


1 Files Affected:

- (modified) clang/lib/AST/TemplateBase.cpp (+1-1) 


``````````diff
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);

``````````

</details>


https://github.com/llvm/llvm-project/pull/187741
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to