diff options
author | David Greene <greened@obbligato.org> | 2010-01-20 15:27:19 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-20 15:27:19 +0000 |
commit | 35dca8665966b6a3531dad849d55dd7836d5e0d8 (patch) | |
tree | 47260bef9d0bd3b1ac7ce3bd25e8b3f51e499bb6 /llvm/lib/Support/Debug.cpp | |
parent | 37fe3ee2e2dc2b1b84818accdafea8a60049cabc (diff) | |
download | bcm5719-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.cpp | 4 |
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(); } } |