aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2013-02-04 10:44:25 -0800
committerDerek Schuff <dschuff@chromium.org>2013-02-04 10:44:25 -0800
commit334e37be3e88c1d125bc833531a7d3056cc606a9 (patch)
treecd83c10664d0282d2dfb3148686f3a0f14e5476e /include/llvm/Support
parent80abe0746cec97dd07ba74db157e85f6e83487a2 (diff)
parent8bdbdf71c987b7604a178c1ebabfab3d22c0e85b (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/ValueHandle.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Support/ValueHandle.h b/include/llvm/Support/ValueHandle.h
index 97ce6f6957..7019c417e8 100644
--- a/include/llvm/Support/ValueHandle.h
+++ b/include/llvm/Support/ValueHandle.h
@@ -240,10 +240,16 @@ public:
// @LOCALMOD-BEGIN -- Hack for bug:
// http://code.google.com/p/nativeclient/issues/detail?id=2786
// This allows us to weaken the Asserting Value Handle in LexicalScopes.h,
- // for Debug info only.
+ // for Debug info only. FIXME: check if this is fixed by some upstream
+ // changes, e.g., r174084. Test by building the full ARM IRT w/ debug
+ // info, and dosbox with full debug info.
+#ifndef NDEBUG
+ // Only enable for !defined(NDEBUG), since this only inherits from
+ // ValueHandleBase when !defined(NDEBUG).
void make_weak() {
setKind(Weak);
}
+#endif
// @LOCALMOD-END
ValueTy *operator->() const { return getValPtr(); }