projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f53050f
)
Fix stack-use-after-scope in test previously hidden by -fmerge-all-constants
author
Vitaly Buka
<vitalybuka@google.com>
Sat, 7 Apr 2018 09:46:00 +0000
(09:46 +0000)
committer
Vitaly Buka
<vitalybuka@google.com>
Sat, 7 Apr 2018 09:46:00 +0000
(09:46 +0000)
llvm-svn: 329489
llvm/unittests/Support/CommandLineTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Support/CommandLineTest.cpp
b/llvm/unittests/Support/CommandLineTest.cpp
index
328dfa3
..
8657504
100644
(file)
--- a/
llvm/unittests/Support/CommandLineTest.cpp
+++ b/
llvm/unittests/Support/CommandLineTest.cpp
@@
-96,9
+96,9
@@
cl::OptionCategory TestCategory("Test Options", "Description");
TEST(CommandLineTest, ModifyExisitingOption) {
StackOption<int> TestOption("test-option", cl::desc("old description"));
- const char Description[] = "New description";
- const char ArgString[] = "new-test-option";
- const char ValueString[] = "Integer";
+
static
const char Description[] = "New description";
+
static
const char ArgString[] = "new-test-option";
+
static
const char ValueString[] = "Integer";
StringMap<cl::Option *> &Map =
cl::getRegisteredOptions(*cl::TopLevelSubCommand);