Hide variable from other functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alkis Evlogimenos 2004-03-04 17:50:44 +00:00
parent f590ced5c5
commit 5f65adda50

View File

@ -48,8 +48,9 @@ static Option *getOption(const std::string &Str) {
}
static std::vector<Option*> &getPositionalOpts() {
static std::vector<Option*> Positional;
return Positional;
static std::vector<Option*> *Positional = 0;
if (!Positional) Positional = new std::vector<Option*>();
return *Positional;
}
static void AddArgument(const char *ArgName, Option *Opt) {