[compiler-rt] 32cd874 - Revert "[compiler-rt][hwasan] Add unused attribute to GetRegisters"

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 10 05:35:59 PST 2022


Reminder to please always mention the reason for the revert in the
commit message.

On Sat, Dec 10, 2022 at 7:46 AM Gulfem Savrun Yeniceri via
llvm-commits <llvm-commits at lists.llvm.org> wrote:
>
>
> Author: Gulfem Savrun Yeniceri
> Date: 2022-12-10T04:44:10Z
> New Revision: 32cd87471f39ad3df2abffd31393bcbf71120e97
>
> URL: https://github.com/llvm/llvm-project/commit/32cd87471f39ad3df2abffd31393bcbf71120e97
> DIFF: https://github.com/llvm/llvm-project/commit/32cd87471f39ad3df2abffd31393bcbf71120e97.diff
>
> LOG: Revert "[compiler-rt][hwasan] Add unused attribute to GetRegisters"
>
> This reverts commit 3e3ae76de451496d6fb8b4713f847a59d6bc19f5.
>
> Added:
>
>
> Modified:
>     compiler-rt/lib/hwasan/hwasan_registers.h
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/compiler-rt/lib/hwasan/hwasan_registers.h b/compiler-rt/lib/hwasan/hwasan_registers.h
> index 48a140ffc9236..f26ce5db0db6b 100644
> --- a/compiler-rt/lib/hwasan/hwasan_registers.h
> +++ b/compiler-rt/lib/hwasan/hwasan_registers.h
> @@ -24,7 +24,7 @@ struct Registers {
>    uptr x[32];
>  };
>
> -__attribute__((always_inline, unused)) static Registers GetRegisters() {
> +__attribute__((always_inline)) static Registers GetRegisters() {
>    Registers regs;
>    __asm__ volatile(
>        "stp x0, x1, [%1, #(8 * 0)]\n"
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list