[compiler-rt] 5992823 - [NFC][sanitizer] Remove unused variable
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri May 21 16:12:08 PDT 2021
Author: Vitaly Buka
Date: 2021-05-21T16:11:51-07:00
New Revision: 599282300836c1c3860aeeab63c253f41863a95a
URL: https://github.com/llvm/llvm-project/commit/599282300836c1c3860aeeab63c253f41863a95a
DIFF: https://github.com/llvm/llvm-project/commit/599282300836c1c3860aeeab63c253f41863a95a.diff
LOG: [NFC][sanitizer] Remove unused variable
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
index 1f216ffcab94..30cc197bb242 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
@@ -192,7 +192,7 @@ TEST_F(StackPrintTest, SKIP_ON_SPARC(ContainsFullTrace)) {
UnwindFast();
char buf[3000];
- uptr len = trace.PrintTo(buf, sizeof(buf));
+ trace.PrintTo(buf, sizeof(buf));
EXPECT_THAT(std::string(buf),
MatchesRegex("(#[0-9]+ 0x[0-9a-f]+\n){" +
std::to_string(trace.size) + "}\n"));
More information about the llvm-commits
mailing list