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 | 4ac0b1e6e92f79177e5ca849cc103d6cf2a3f014 (patch) | |
tree | f3bbb8603fc7207b5e121d6978a28b197b2d1a82 /compiler-rt | |
parent | 3db40ffef332cca32b2820615bf363f3c9647efa (diff) | |
download | llvm-4ac0b1e6e92f79177e5ca849cc103d6cf2a3f014.zip llvm-4ac0b1e6e92f79177e5ca849cc103d6cf2a3f014.tar.gz llvm-4ac0b1e6e92f79177e5ca849cc103d6cf2a3f014.tar.bz2 |
[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
llvm-svn: 320592
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/scudo/scudo_allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator.cpp b/compiler-rt/lib/scudo/scudo_allocator.cpp index 6383c68..d7df317 100644 --- a/compiler-rt/lib/scudo/scudo_allocator.cpp +++ b/compiler-rt/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); } |