| Index: llvm/include/llvm/CodeGen/LexicalScopes.h
|
| ===================================================================
|
| --- a/llvm/include/llvm/CodeGen/LexicalScopes.h
|
| +++ b/llvm/include/llvm/CodeGen/LexicalScopes.h
|
| @@ -159,6 +159,12 @@
|
| LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A)
|
| : Parent(P), Desc(D), InlinedAtLocation(I), AbstractScope(A),
|
| LastInsn(0), FirstInsn(0), DFSIn(0), DFSOut(0), IndentLevel(0) {
|
| + // @LOCALMOD-BEGIN -- Hack for bug
|
| + // http://code.google.com/p/nativeclient/issues/detail?id=2786
|
| + Desc.make_weak();
|
| + InlinedAtLocation.make_weak();
|
| + // @LOCALMOD-END
|
| +
|
| if (Parent)
|
| Parent->addChild(this);
|
| }
|
|
|