[compiler-rt] r336238 - [libFuzzer] [NFC] Inline static variable to avoid the linker warning.

George Karpenkov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 17:37:46 PDT 2018


Author: george.karpenkov
Date: Tue Jul  3 17:37:45 2018
New Revision: 336238

URL: http://llvm.org/viewvc/llvm-project?rev=336238&view=rev
Log:
[libFuzzer] [NFC] Inline static variable to avoid the linker warning.

Differential Revision: https://reviews.llvm.org/D48650

Modified:
    compiler-rt/trunk/lib/fuzzer/FuzzerCommand.h

Modified: compiler-rt/trunk/lib/fuzzer/FuzzerCommand.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerCommand.h?rev=336238&r1=336237&r2=336238&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerCommand.h (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerCommand.h Tue Jul  3 17:37:45 2018
@@ -29,8 +29,7 @@ public:
   // is immutable, meaning this flag effectively marks the end of the mutable
   // argument list.
   static inline const char *ignoreRemainingArgs() {
-    static const char *kIgnoreRemaining = "-ignore_remaining_args=1";
-    return kIgnoreRemaining;
+    return "-ignore_remaining_args=1";
   }
 
   Command() : CombinedOutAndErr(false) {}




More information about the llvm-commits mailing list