From 35dca8665966b6a3531dad849d55dd7836d5e0d8 Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 20 Jan 2010 15:27:19 +0000 Subject: Fix an infinite recursion problem. dbgs() should return errs() in release mode. llvm-svn: 94001 --- llvm/lib/Support/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Debug.cpp') 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(); } } -- cgit v1.2.3