summaryrefslogtreecommitdiffstats
path: root/compiler-rt/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
commitaeeac6d41ce2db11e5e72a21f197e46dd724950c (patch)
treeabcc12200af4b01b6dc3022f04c0fa39583d9566 /compiler-rt/lib/fuzzer/FuzzerCommand.h
parent5e4ca9fc9f2edc8447cc927d25b5d4868511e762 (diff)
downloadbcm5719-llvm-aeeac6d41ce2db11e5e72a21f197e46dd724950c.tar.gz
bcm5719-llvm-aeeac6d41ce2db11e5e72a21f197e46dd724950c.zip
[libFuzzer] [NFC] Inline static variable to avoid the linker warning.
Differential Revision: https://reviews.llvm.org/D48650 llvm-svn: 336238
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerCommand.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerCommand.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerCommand.h b/compiler-rt/lib/fuzzer/FuzzerCommand.h
index c5500ed21fc..255f571ecf3 100644
--- a/compiler-rt/lib/fuzzer/FuzzerCommand.h
+++ b/compiler-rt/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) {}
OpenPOWER on IntegriCloud