From 2bfb19e813fcfdcb4a37b16bd77d267d7c77f0f8 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Sun, 31 Mar 2024 19:45:12 -0700 Subject: [PATCH] Revert "Make two texts static in `ReplayInlineAdvisor`" (#82071) Reverts llvm/llvm-project#79489 We know that the issues was with asan/annotations. We can revert it. --- llvm/lib/Analysis/ReplayInlineAdvisor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Analysis/ReplayInlineAdvisor.cpp b/llvm/lib/Analysis/ReplayInlineAdvisor.cpp index 0814483db343ce..2ca02eb1741712 100644 --- a/llvm/lib/Analysis/ReplayInlineAdvisor.cpp +++ b/llvm/lib/Analysis/ReplayInlineAdvisor.cpp @@ -43,8 +43,8 @@ ReplayInlineAdvisor::ReplayInlineAdvisor( // main:3:1.1; // We use the callsite string after `at callsite` to replay inlining. line_iterator LineIt(*BufferOrErr.get(), /*SkipBlanks=*/true); - static const std::string PositiveRemark = "' inlined into '"; - static const std::string NegativeRemark = "' will not be inlined into '"; + const std::string PositiveRemark = "' inlined into '"; + const std::string NegativeRemark = "' will not be inlined into '"; for (; !LineIt.is_at_eof(); ++LineIt) { StringRef Line = *LineIt;