[compiler-rt] d12c892 - [hwasan] Fix consts after 6eaaf0916

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 21 16:25:28 PDT 2023


Author: Vitaly Buka
Date: 2023-09-21T16:25:16-07:00
New Revision: d12c892ee425b08600047bd8ea6c1f1096f64ea4

URL: https://github.com/llvm/llvm-project/commit/d12c892ee425b08600047bd8ea6c1f1096f64ea4
DIFF: https://github.com/llvm/llvm-project/commit/d12c892ee425b08600047bd8ea6c1f1096f64ea4.diff

LOG: [hwasan] Fix consts after 6eaaf0916

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_report.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index 3c20effdd318b93..f74e26af70a0fa2 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -1014,7 +1014,8 @@ void ReportRegisters(const uptr *frame, uptr pc) {
        frame[0], frame[1], frame[2], frame[3]);
 #elif SANITIZER_RISCV64
   Printf("    sp  %016llx  x1  %016llx  x2  %016llx  x3  %016llx\n",
-         reinterpret_cast<u8 *>(frame) + 256, frame[1], frame[2], frame[3]);
+         reinterpret_cast<const u8 *>(frame) + 256, frame[1], frame[2],
+         frame[3]);
 #endif
   Printf("    x4  %016llx  x5  %016llx  x6  %016llx  x7  %016llx\n",
        frame[4], frame[5], frame[6], frame[7]);
@@ -1032,7 +1033,7 @@ void ReportRegisters(const uptr *frame, uptr pc) {
   // passes it to this function.
 #if defined(__aarch64__)
   Printf("    x28 %016llx  x29 %016llx  x30 %016llx   sp %016llx\n", frame[28],
-         frame[29], frame[30], reinterpret_cast<u8 *>(frame) + 256);
+         frame[29], frame[30], reinterpret_cast<const u8 *>(frame) + 256);
 #elif SANITIZER_RISCV64
   Printf("    x28 %016llx  x29 %016llx  x30 %016llx  x31 %016llx\n", frame[28],
          frame[29], frame[30], frame[31]);


        


More information about the llvm-commits mailing list