diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2017-12-13 16:10:39 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2017-12-13 16:10:39 +0000 |
commit | 51bfa63ac5b93a2dedd68044f32ded4cfb0594f9 (patch) | |
tree | 72e4f46d84c08834f87df5e05bcfb7cbd4fc931e | |
parent | c19e91fe7bb520eb33af41d4dea2689c77e22067 (diff) |
[scudo] Inline getScudoChunk function.
Summary:
getScudoChunk function is implicitly inlined for optimized builds on
clang, but not on gcc. It's a small enough function that it seems
sensible enough to just inline it by default.
Reviewers: cryptoad, alekseyshl
Reviewed By: cryptoad
Differential Revision: https://reviews.llvm.org/D41138
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320592 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/scudo/scudo_allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scudo/scudo_allocator.cpp b/lib/scudo/scudo_allocator.cpp index 6383c6819..d7df317ff 100644 --- a/lib/scudo/scudo_allocator.cpp +++ b/lib/scudo/scudo_allocator.cpp @@ -157,7 +157,7 @@ struct ScudoChunk : UnpackedHeader { } }; -ScudoChunk *getScudoChunk(uptr UserBeg) { +INLINE ScudoChunk *getScudoChunk(uptr UserBeg) { return reinterpret_cast<ScudoChunk *>(UserBeg - AlignedChunkHeaderSize); } |