From 46d21cd0327e352491be77bb86740167984c0209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 14 Feb 2024 23:26:34 -0800 Subject: [PATCH 1/2] fix cl::desc Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 2e8d9bd748df8..029c07636d178 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -347,7 +347,7 @@ static cl::opt static cl::opt ClInstrumentUninterestingAllocas( "asan-instrument-uninteresting-allocas", - cl::desc("Do not instrument uninteresting allocas"), cl::Hidden); + cl::desc("Instrument uninteresting allocas"), cl::Hidden); static cl::opt ClConstructorKind( "asan-constructor-kind", From c2eaeada2ce0d4d59810c497eda8e9c0d8a417c7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 15 Feb 2024 00:25:03 -0800 Subject: [PATCH 2/2] revert an undeeded clang-format after restoring the original version of the patch Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index a115a8967dcb7..4c29e02ea0df3 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -346,7 +346,8 @@ static cl::opt cl::Hidden, cl::init(true)); static cl::opt ClConstructorKind( - "asan-constructor-kind", cl::desc("Sets the ASan constructor kind"), + "asan-constructor-kind", + cl::desc("Sets the ASan constructor kind"), cl::values(clEnumValN(AsanCtorKind::None, "none", "No constructors"), clEnumValN(AsanCtorKind::Global, "global", "Use global constructors")),