summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerCommand.h
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-07-04 00:37:45 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-07-04 00:37:45 +0000
commit43f633564e338a6dde83d49a48e5bfcbfdce292c (patch)
tree3ef1bf9f1e9c378405acc049e8c363b7f0b56ae0 /lib/fuzzer/FuzzerCommand.h
parent3080d045631a8f6145db1cd757b5cf210585a2b3 (diff)
[libFuzzer] [NFC] Inline static variable to avoid the linker warning.
Differential Revision: https://reviews.llvm.org/D48650 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@336238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerCommand.h')
-rw-r--r--lib/fuzzer/FuzzerCommand.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerCommand.h b/lib/fuzzer/FuzzerCommand.h
index c5500ed21..255f571ec 100644
--- a/lib/fuzzer/FuzzerCommand.h
+++ b/lib/fuzzer/FuzzerCommand.h
@@ -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) {}