Skip to content

Commit 84576c7

Browse files
[ExecutionEngine] Remove an unnecessary cast (NFC) (#151082)
BaseObj is already of const MachOObjectFile &.
1 parent d4562a1 commit 84576c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ class RuntimeDyldMachOX86_64
157157
processSubtractRelocation(unsigned SectionID, relocation_iterator RelI,
158158
const MachOObjectFile &BaseObj,
159159
ObjSectionToIDMap &ObjSectionToID) {
160-
const MachOObjectFile &Obj =
161-
static_cast<const MachOObjectFile&>(BaseObj);
160+
const MachOObjectFile &Obj = BaseObj;
162161
MachO::any_relocation_info RE =
163162
Obj.getRelocation(RelI->getRawDataRefImpl());
164163

0 commit comments

Comments
 (0)