[compiler-rt] 0e0d3b3 - [sanitizer] Fix typo in test

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 13:31:43 PDT 2021


Author: Vitaly Buka
Date: 2021-10-12T13:24:40-07:00
New Revision: 0e0d3b33268cf6b734e844d1144e2adb0e1cc521

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

LOG: [sanitizer] Fix typo in test

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
index bc461d621867..19d64fbf49db 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp
@@ -95,7 +95,7 @@ TEST(SanitizerCommon, StackDepotPrintNoLock) {
     idx2id[i] = StackDepotPut(s);
   }
   StackDepotPrintAll();
-  for (u32 i = 1; i < n; ++i) {
+  for (u32 i = 0; i < n; ++i) {
     uptr array[] = {0x111, 0x222, i, 0x444, 0x777};
     StackTrace s(array, ARRAY_SIZE(array));
     CHECK_EQ(idx2id[i], StackDepotPut(s));


        


More information about the llvm-commits mailing list