Revert "[compiler-rt][hwasan] Add unused attribute to GetRegisters"
authorGulfem Savrun Yeniceri <gulfem@google.com>
Sat, 10 Dec 2022 04:44:10 +0000 (04:44 +0000)
committerGulfem Savrun Yeniceri <gulfem@google.com>
Sat, 10 Dec 2022 04:44:10 +0000 (04:44 +0000)
This reverts commit 3e3ae76de451496d6fb8b4713f847a59d6bc19f5.

compiler-rt/lib/hwasan/hwasan_registers.h

index 48a140f..f26ce5d 100644 (file)
@@ -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"