[llvm] [NFC] [HWASan] make getAndroidSlotPtr function generic (PR #86200)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 13:46:08 PDT 2024


================
@@ -273,14 +273,14 @@ Value *getFP(IRBuilder<> &IRB) {
       IRB.getIntPtrTy(M->getDataLayout()));
 }
 
-Value *getAndroidSanitizerSlotPtr(IRBuilder<> &IRB) {
+Value *getAndroidSlotPtr(IRBuilder<> &IRB, int Slot) {
   Module *M = IRB.GetInsertBlock()->getParent()->getParent();
   // Android provides a fixed TLS slot for sanitizers. See TLS_SLOT_SANITIZER
   // in Bionic's libc/private/bionic_tls.h.
   Function *ThreadPointerFunc =
       Intrinsic::getDeclaration(M, Intrinsic::thread_pointer);
   return IRB.CreateConstGEP1_32(IRB.getInt8Ty(),
----------------
fmayer wrote:

That changes tests, which makes this non-NFC. Let's not do in this patch.

https://github.com/llvm/llvm-project/pull/86200


More information about the llvm-commits mailing list