Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[asan] Fix Windows i386 regression #73650

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

farzonl
Copy link
Member

@farzonl farzonl commented Nov 28, 2023

This change makes x64 enablement case explicit and
adds an else case for 32bit which fixes a regression
on Windows i386 asan builds introduced
by #66973.

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 28, 2023

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Farzon Lotfi (farzonl)

Changes

This change makes x64 enablement case explicit.


Full diff: https://github.com/llvm/llvm-project/pull/73650.diff

1 Files Affected:

  • (modified) compiler-rt/lib/sanitizer_common/sanitizer_platform.h (+1-1)
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 49d8a67cc12db3f..e816702ce582e7c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -263,7 +263,7 @@
 #if SANITIZER_WINDOWS64 && SANITIZER_ARM64
 #  define SANITIZER_WINDOWS_ARM64 1
 #  define SANITIZER_WINDOWS_x64 0
-#else
+#if SANITIZER_WINDOWS64 && !SANITIZER_ARM64
 #  define SANITIZER_WINDOWS_ARM64 0
 #  define SANITIZER_WINDOWS_x64 1
 #endif

Copy link

github-actions bot commented Nov 28, 2023

✅ With the latest revision this PR passed the C/C++ code formatter.

@mstorsjo
Copy link
Member

The change looks ok, but please improve the commit message (the PR description); at least reference the commit that caused the regression, and add tags to indicate the scope of the commit, e.g. “[asan]” at the start of the subject. And please spell out “windows”, not “window “.

@farzonl farzonl changed the title fix window i386 regression [asan] Fix Windows i386 regression Nov 28, 2023
@farzonl
Copy link
Member Author

farzonl commented Nov 28, 2023

@mstorsjo I don't have permissions to add tags. I completed all the other requests.

This change makes x64 enablement case explicit and
adds an else case for 32bit which fixes a regression
on Windows i386 asan builds introduced
by llvm#66973.
@mstorsjo mstorsjo merged commit 50b9930 into llvm:main Nov 28, 2023
3 checks passed
@farzonl farzonl deleted the bugfix/i386-asan branch January 30, 2024 01:15
@farzonl farzonl self-assigned this Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants