summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-20 15:27:19 +0000
committerDavid Greene <greened@obbligato.org>2010-01-20 15:27:19 +0000
commit35dca8665966b6a3531dad849d55dd7836d5e0d8 (patch)
tree47260bef9d0bd3b1ac7ce3bd25e8b3f51e499bb6 /llvm/lib/Support/Debug.cpp
parent37fe3ee2e2dc2b1b84818accdafea8a60049cabc (diff)
downloadbcm5719-llvm-35dca8665966b6a3531dad849d55dd7836d5e0d8.tar.gz
bcm5719-llvm-35dca8665966b6a3531dad849d55dd7836d5e0d8.zip
Fix an infinite recursion problem. dbgs() should return errs() in
release mode. llvm-svn: 94001
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r--llvm/lib/Support/Debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index a03577101ba..82b4b8ce163 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -115,9 +115,9 @@ raw_ostream &llvm::dbgs() {
#else
// Avoid "has no symbols" warning.
namespace llvm {
- /// dbgs - Return dbgs().
+ /// dbgs - Return errs().
raw_ostream &dbgs() {
- return dbgs();
+ return errs();
}
}
OpenPOWER on IntegriCloud