Skip to content

Commit 437d15a

Browse files
authored
[clang][bytecode][NFC] Remove double initializer (llvm#155150)
As pointed out in llvm#154405 (comment)
1 parent 2d5a3c8 commit 437d15a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/AST/ByteCode/Pointer.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ class Pointer {
103103
Pointer(uint64_t Address, const Descriptor *Desc, uint64_t Offset = 0)
104104
: Offset(Offset), StorageKind(Storage::Int), Int{Desc, Address} {}
105105
Pointer(const Function *F, uint64_t Offset = 0)
106-
: Offset(Offset), StorageKind(Storage::Fn), Fn(F) {
107-
Fn = FunctionPointer(F);
108-
}
106+
: Offset(Offset), StorageKind(Storage::Fn), Fn(F) {}
109107
Pointer(const Type *TypePtr, const Type *TypeInfoType, uint64_t Offset = 0)
110108
: Offset(Offset), StorageKind(Storage::Typeid) {
111109
Typeid.TypePtr = TypePtr;

0 commit comments

Comments
 (0)