[llvm] Make two texts static in `ReplayInlineAdvisor` (PR #79489)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 12:23:49 PST 2024


================
@@ -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);
-  const std::string PositiveRemark = "' inlined into '";
-  const std::string NegativeRemark = "' will not be inlined into '";
+  static const std::string PositiveRemark = "' inlined into '";
----------------
AdvenamTacet wrote:

I don't understand the question.

https://github.com/llvm/llvm-project/pull/79489


More information about the llvm-commits mailing list