[lld] [lld-macho] Fix address sanitizer for category merging (PR #91680)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 17:03:04 PDT 2024
================
@@ -1148,7 +1148,7 @@ void ObjcCategoryMerger::generateCatListForNonErasedCategories(
assert(nonErasedCatBody && "Failed to relocate non-deleted category");
// Allocate data for the new __objc_catlist slot
- auto bodyData = newSectionData(target->wordSize);
+ llvm::ArrayRef<uint8_t> bodyData = newSectionData(target->wordSize);
----------------
alx32 wrote:
I am not sure I understand, it is using `ArrayRef<>`, or what is the suggested change ?
https://github.com/llvm/llvm-project/pull/91680
More information about the llvm-commits
mailing list