Skip to content

Commit 6534d68

Browse files
vitalybukagithub-actions[bot]
authored andcommitted
Automerge: [NFC][Asan] Make GetTLSFakeStack static
Reviewers: fmayer, thurstond Reviewed By: fmayer Pull Request: llvm/llvm-project#163669
2 parents a35a9c5 + 1c7ae89 commit 6534d68

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler-rt/lib/asan/asan_fake_stack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ void FakeStack::ForEachFakeFrame(RangeIteratorCallback callback, void* arg) {
216216
#if (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_FUCHSIA
217217
static THREADLOCAL FakeStack* fake_stack_tls;
218218

219-
FakeStack* GetTLSFakeStack() { return fake_stack_tls; }
219+
static FakeStack* GetTLSFakeStack() { return fake_stack_tls; }
220220
void SetTLSFakeStack(FakeStack* fs) { fake_stack_tls = fs; }
221221
#else
222-
FakeStack* GetTLSFakeStack() { return 0; }
222+
static FakeStack* GetTLSFakeStack() { return 0; }
223223
void SetTLSFakeStack(FakeStack* fs) {}
224224
#endif // (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_FUCHSIA
225225

compiler-rt/lib/asan/asan_fake_stack.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ class FakeStack {
195195
void *true_start;
196196
};
197197

198-
FakeStack *GetTLSFakeStack();
199198
void SetTLSFakeStack(FakeStack *fs);
200199

201200
} // namespace __asan

0 commit comments

Comments
 (0)