https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/155150

As pointed out in 
https://github.com/llvm/llvm-project/pull/154405#discussion_r2296441643

>From 72b59df75ec3b66243b20dc0957b6b9a92cf07f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Sun, 24 Aug 2025 10:36:42 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove double initializer

As pointed out in 
https://github.com/llvm/llvm-project/pull/154405#discussion_r2296441643
---
 clang/lib/AST/ByteCode/Pointer.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h
index 0ce54ab0a17df..66e85f93a124e 100644
--- a/clang/lib/AST/ByteCode/Pointer.h
+++ b/clang/lib/AST/ByteCode/Pointer.h
@@ -103,9 +103,7 @@ class Pointer {
   Pointer(uint64_t Address, const Descriptor *Desc, uint64_t Offset = 0)
       : Offset(Offset), StorageKind(Storage::Int), Int{Desc, Address} {}
   Pointer(const Function *F, uint64_t Offset = 0)
-      : Offset(Offset), StorageKind(Storage::Fn), Fn(F) {
-    Fn = FunctionPointer(F);
-  }
+      : Offset(Offset), StorageKind(Storage::Fn), Fn(F) {}
   Pointer(const Type *TypePtr, const Type *TypeInfoType, uint64_t Offset = 0)
       : Offset(Offset), StorageKind(Storage::Typeid) {
     Typeid.TypePtr = TypePtr;

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

Reply via email to