Fix stack-use-after-scope in test previously hidden by -fmerge-all-constants

llvm-svn: 329489
This commit is contained in:
Vitaly Buka 2018-04-07 09:46:00 +00:00
parent f53050f010
commit a8b32dec67
1 changed files with 3 additions and 3 deletions

View File

@ -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);