diff options
author | Jan Voung <jvoung@chromium.org> | 2013-02-04 09:34:30 -0800 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-02-04 09:34:30 -0800 |
commit | 8bdbdf71c987b7604a178c1ebabfab3d22c0e85b (patch) | |
tree | b26f480631ac19b0d3a09e02b683b889fcbc02f6 /include/llvm/CodeGen/LexicalScopes.h | |
parent | b2be8cafd394a1617a290d1ef358395e5326acf2 (diff) |
Make some LLVM localmods compile when building with --disable-assertions.
Also, wrap some more debug code under the DEBUG() macro so that it gets
pruned with --disable-assertions.
BUG=none
Review URL: https://codereview.chromium.org/12162006
Diffstat (limited to 'include/llvm/CodeGen/LexicalScopes.h')
-rw-r--r-- | include/llvm/CodeGen/LexicalScopes.h | 2 |
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) |