MemToMeta returns u32*, so it's reasonable for IsMetaMem
to accept u32* as well.
Changing the argument type just removes few type casts.
Details
Details
- Reviewers
vitalybuka melver - Commits
- rGc7a4ede35116: tsan: make IsMetaMem accept u32*
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| compiler-rt/lib/tsan/rtl/tsan_rtl.cpp | ||
|---|---|---|
| 331 | is this const for text alignment or it actually affects some optimization? | |
| compiler-rt/lib/tsan/rtl/tsan_rtl.cpp | ||
|---|---|---|
| 331 | It's just to make it constant (prevent accidental changes, make readers to be able to assume that the value is not changing). Currently we use "const uptr", so I just kept the const. | |
is this const for text alignment or it actually affects some optimization?