[compiler-rt] aa45fc4 - [sanitizers] Silence warnings about unused variables in i386 build. NFC.
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 28 02:30:46 PST 2022
Author: Martin Storsjö
Date: 2022-01-28T12:30:38+02:00
New Revision: aa45fc41c8cdbc3001959f7c59c2483468ca8ad4
URL: https://github.com/llvm/llvm-project/commit/aa45fc41c8cdbc3001959f7c59c2483468ca8ad4
DIFF: https://github.com/llvm/llvm-project/commit/aa45fc41c8cdbc3001959f7c59c2483468ca8ad4.diff
LOG: [sanitizers] Silence warnings about unused variables in i386 build. NFC.
Added:
Modified:
compiler-rt/lib/interception/interception_win.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/interception/interception_win.cpp b/compiler-rt/lib/interception/interception_win.cpp
index 9289e06b88fc1..10b893391f47a 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -401,6 +401,7 @@ static uptr AllocateMemoryForTrampoline(uptr image_address, size_t size) {
// The following prologues cannot be patched because of the short jump
// jumping to the patching region.
+#if SANITIZER_WINDOWS64
// ntdll!wcslen in Win11
// 488bc1 mov rax,rcx
// 0fb710 movzx edx,word ptr [rax]
@@ -422,6 +423,7 @@ static const u8 kPrologueWithShortJump2[] = {
0x4c, 0x8b, 0xc1, 0x8a, 0x01, 0x48, 0xff, 0xc1,
0x84, 0xc0, 0x75, 0xf7,
};
+#endif
// Returns 0 on error.
static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
More information about the llvm-commits
mailing list