commit | 58b1b82dc2ee262da6f10399b82a1687af5ad819 | [log] [tgz] |
---|---|---|
author | Krzysztof Kosiński <krzysio@google.com> | Wed Sep 21 01:52:56 2022 +0000 |
committer | Krzysztof Kosiński <krzysio@google.com> | Fri Sep 23 19:10:18 2022 +0000 |
tree | a3be9c8971d09d6059bed656b3f9a4801de835fd | |
parent | 8ecb53a4eeb025f5f0f858838b7f7466c9f28d2e [diff] |
Fix unused variable warning in runtime/gc/heap.cc. The variable volatile_sum is used to prevent the compiler from optimizing away the loads, but it's flagged as an unused variable. Remove it and instead use an utility function that uses static_cast to void to emit the load instructions. Bug: 197240255 Test: presubmit Change-Id: Ibf0110654a5100ccd0a182b7acfbd81647b2e902