Skip to content

Conversation

@vitalybuka
Copy link
Collaborator

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Oct 16, 2025

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

Author: Vitaly Buka (vitalybuka)

Changes

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

1 Files Affected:

  • (modified) compiler-rt/lib/asan/asan_fake_stack.cpp (+1-1)
diff --git a/compiler-rt/lib/asan/asan_fake_stack.cpp b/compiler-rt/lib/asan/asan_fake_stack.cpp
index 0b7d9774c9090..5034ea2a0e459 100644
--- a/compiler-rt/lib/asan/asan_fake_stack.cpp
+++ b/compiler-rt/lib/asan/asan_fake_stack.cpp
@@ -219,7 +219,7 @@ static THREADLOCAL FakeStack* fake_stack_tls;
 static FakeStack* GetTLSFakeStack() { return fake_stack_tls; }
 void SetTLSFakeStack(FakeStack* fs) { fake_stack_tls = fs; }
 #else
-static FakeStack* GetTLSFakeStack() { return 0; }
+static FakeStack* GetTLSFakeStack() { return nullptr; }
 void SetTLSFakeStack(FakeStack* fs) {}
 #endif  // (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_FUCHSIA
 

Created using spr 1.3.6

[skip ci]
Created using spr 1.3.6
@vitalybuka vitalybuka changed the base branch from users/vitalybuka/spr/main.nfcasan-replace-0-with-nullptr-in-asan_fake_stack to main October 16, 2025 01:01
Created using spr 1.3.6
@vitalybuka vitalybuka merged commit 8d1454b into main Oct 16, 2025
6 checks passed
@vitalybuka vitalybuka deleted the users/vitalybuka/spr/nfcasan-replace-0-with-nullptr-in-asan_fake_stack branch October 16, 2025 01:02
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.

4 participants