forked from OSchip/llvm-project
Fix stack-use-after-scope in test previously hidden by -fmerge-all-constants
llvm-svn: 329489
This commit is contained in:
parent
f53050f010
commit
a8b32dec67
|
@ -96,9 +96,9 @@ cl::OptionCategory TestCategory("Test Options", "Description");
|
||||||
TEST(CommandLineTest, ModifyExisitingOption) {
|
TEST(CommandLineTest, ModifyExisitingOption) {
|
||||||
StackOption<int> TestOption("test-option", cl::desc("old description"));
|
StackOption<int> TestOption("test-option", cl::desc("old description"));
|
||||||
|
|
||||||
const char Description[] = "New description";
|
static const char Description[] = "New description";
|
||||||
const char ArgString[] = "new-test-option";
|
static const char ArgString[] = "new-test-option";
|
||||||
const char ValueString[] = "Integer";
|
static const char ValueString[] = "Integer";
|
||||||
|
|
||||||
StringMap<cl::Option *> &Map =
|
StringMap<cl::Option *> &Map =
|
||||||
cl::getRegisteredOptions(*cl::TopLevelSubCommand);
|
cl::getRegisteredOptions(*cl::TopLevelSubCommand);
|
||||||
|
|
Loading…
Reference in New Issue