From 2ef951e6ee6fdb3994fd6cc194abe2c94ff53fbe Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 20 Jan 2010 15:27:19 +0000 Subject: [PATCH] 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 --- lib/Support/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index a03577101ba..82b4b8ce163 100644 --- a/lib/Support/Debug.cpp +++ b/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(); } } -- 2.34.1