Skip to content

Commit

Permalink
Fix stack-use-after-scope in test previously hidden by -fmerge-all-co…
Browse files Browse the repository at this point in the history
…nstants

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329489 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vitalybuka committed Apr 7, 2018
1 parent bc866fe commit 6df5bfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/Support/CommandLineTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6df5bfe

Please sign in to comment.