[llvm] Revert "Make two texts static in `ReplayInlineAdvisor`" (PR #82071)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Feb 16 15:53:54 PST 2024
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Vitaly Buka (vitalybuka)
<details>
<summary>Changes</summary>
Reverts llvm/llvm-project#<!-- -->79489
We know that the issues was with asan/annotations. We can revert it.
---
Full diff: https://github.com/llvm/llvm-project/pull/82071.diff
1 Files Affected:
- (modified) llvm/lib/Analysis/ReplayInlineAdvisor.cpp (+2-2) 
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/82071
    
    
More information about the llvm-commits
mailing list