Fix an infinite recursion problem. dbgs() should return errs() in

release mode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2010-01-20 15:27:19 +00:00
parent bcb83e5b6c
commit 2ef951e6ee

View File

@ -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();
}
}