[compiler-rt] 4dde706 - [compiler-rt][obvious] fix typo, delete paren

Michael Jones via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 27 15:55:45 PDT 2021


Author: Michael Jones
Date: 2021-08-27T22:55:39Z
New Revision: 4dde7064e745c855f1fa9503b3ae7f710d1e54b2

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

LOG: [compiler-rt][obvious] fix typo, delete paren

I should've deleted a parenthesis on line 4222 in
https://reviews.llvm.org/D108843 and this patch fixes it.

Differential Revision: https://reviews.llvm.org/D108852

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
index 3cc0a2887a5c..5ab3186e159f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -4219,7 +4219,7 @@ INTERCEPTOR(char **, backtrace_symbols, void **buffer, int size) {
   if (res && size) {
     COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res, size * sizeof(*res));
     for (int i = 0; i < size; ++i)
-      COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res[i], internal_strlen(res[i])) + 1);
+      COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res[i], internal_strlen(res[i]) + 1);
   }
   return res;
 }


        


More information about the llvm-commits mailing list