summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-09 16:59:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-09 16:59:07 +0000
commit62e6ec066e83458084e8283a96098cd34ce8e7f8 (patch)
tree920c458c3c5ed09288a763d0e9f065d7f53db90f /llvm/lib/Support/Debug.cpp
parent5ec532a935bf17add7f6f8f9e8dfb96c3774d02e (diff)
downloadbcm5719-llvm-62e6ec066e83458084e8283a96098cd34ce8e7f8.tar.gz
bcm5719-llvm-62e6ec066e83458084e8283a96098cd34ce8e7f8.zip
Misc cleanup. NFC.
These were lost when I reverted the raw_ostream changes. llvm-svn: 234504
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r--llvm/lib/Support/Debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index a88b18e6c06..eb99242914c 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -114,9 +114,9 @@ static void debug_user_sig_handler(void *Cookie) {
// know that debug mode is enabled and dbgs() really is a
// circular_raw_ostream. If NDEBUG is defined, then dbgs() ==
// errs() but this will never be invoked.
- llvm::circular_raw_ostream *dbgout =
- static_cast<llvm::circular_raw_ostream *>(&llvm::dbgs());
- dbgout->flushBufferWithBanner();
+ llvm::circular_raw_ostream &dbgout =
+ static_cast<circular_raw_ostream &>(llvm::dbgs());
+ dbgout.flushBufferWithBanner();
}
/// dbgs - Return a circular-buffered debug stream.
OpenPOWER on IntegriCloud