summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-09 02:10:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-09 02:10:28 +0000
commit0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b (patch)
tree6e78c885044b26acb23ca1c926936707ab432da3 /llvm/lib/Support/Debug.cpp
parent622be5793df74f36c713769f429fce4e2d817e3e (diff)
downloadbcm5719-llvm-0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b.tar.gz
bcm5719-llvm-0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b.zip
Add classof implementations to the raw_ostream classes.
More uses to follow in a another patch. llvm-svn: 234460
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r--llvm/lib/Support/Debug.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index a88b18e6c06..896898c185c 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -114,9 +114,8 @@ 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 = cast<circular_raw_ostream>(llvm::dbgs());
+ dbgout.flushBufferWithBanner();
}
/// dbgs - Return a circular-buffered debug stream.
OpenPOWER on IntegriCloud