| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 71639d5dd2d8a29645b3d26a543c810d0f4efa55..e8e8fb4e5db0565ca54e3ad604d8747d2f903a37 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -2123,9 +2123,10 @@ class RegExpEmpty: public RegExpTree {
|
| virtual bool IsEmpty();
|
| virtual int min_match() { return 0; }
|
| virtual int max_match() { return 0; }
|
| - static RegExpEmpty* GetInstance() { return &kInstance; }
|
| - private:
|
| - static RegExpEmpty kInstance;
|
| + static RegExpEmpty* GetInstance() {
|
| + static RegExpEmpty* instance = ::new RegExpEmpty();
|
| + return instance;
|
| + }
|
| };
|
|
|
|
|
|
|