Skip to content

Commit 1a4ccd9

Browse files
tbaederrgithub-actions[bot]
authored andcommitted
Automerge: [clang][bytecode][NFC] Remove double initializer (#155150)
As pointed out in llvm/llvm-project#154405 (comment)
2 parents 22cafef + 437d15a commit 1a4ccd9

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)