Skip to content

Commit ea7f4ba

Browse files
author
git apple-llvm automerger
committed
Merge commit 'beb3d48262bc' from llvm.org/main into next
2 parents 0ffba13 + beb3d48 commit ea7f4ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/orc/macho_platform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ Error registerObjCSelectors(
112112
if (auto Err = validatePointerSectionExtent("__objc_selrefs", ObjCSelRefs))
113113
return Err;
114114

115-
for (uintptr_t SelEntry : ObjCSelRefs.toSpan<uintptr_t>()) {
115+
for (uintptr_t &SelEntry : ObjCSelRefs.toSpan<uintptr_t>()) {
116116
const char *SelName = reinterpret_cast<const char *>(SelEntry);
117117
auto Sel = sel_registerName(SelName);
118-
*reinterpret_cast<SEL *>(SelEntry) = Sel;
118+
*reinterpret_cast<SEL *>(&SelEntry) = Sel;
119119
}
120120
}
121121

0 commit comments

Comments
 (0)