[llvm-commits] [parallel] CVS: llvm/lib/Support/CommandLine.cpp

Misha Brukman brukman at cs.uiuc.edu
Wed Mar 10 19:35:08 PST 2004


Changes in directory llvm/lib/Support:

CommandLine.cpp updated: 1.42 -> 1.42.2.1

---
Log message:

Merge from trunk.

---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Support/CommandLine.cpp
diff -u llvm/lib/Support/CommandLine.cpp:1.42 llvm/lib/Support/CommandLine.cpp:1.42.2.1
--- llvm/lib/Support/CommandLine.cpp:1.42	Sun Dec 14 15:35:53 2003
+++ llvm/lib/Support/CommandLine.cpp	Wed Mar 10 19:34:00 2004
@@ -48,8 +48,9 @@
 }
 
 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) {





More information about the llvm-commits mailing list