aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LexicalScopes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h
index bb22cb74c5..dad13381a3 100644
--- a/include/llvm/CodeGen/LexicalScopes.h
+++ b/include/llvm/CodeGen/LexicalScopes.h
@@ -164,8 +164,10 @@ public:
#endif
// @LOCALMOD-BEGIN -- Hack for bug
// http://code.google.com/p/nativeclient/issues/detail?id=2786
+#ifndef NDEBUG
Desc.make_weak();
InlinedAtLocation.make_weak();
+#endif
// @LOCALMOD-END
if (Parent)