diff options
Diffstat (limited to 'lib/VMCore/LeakDetector.cpp')
-rw-r--r-- | lib/VMCore/LeakDetector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 3185742174..5ebd4f5ac0 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/lib/VMCore/LeakDetector.cpp @@ -16,7 +16,6 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/Streams.h" #include "llvm/System/Mutex.h" #include "llvm/System/Threading.h" #include "llvm/Value.h" @@ -64,8 +63,8 @@ void LeakDetector::checkForGarbageImpl(LLVMContext &Context, // use non-short-circuit version so that both checks are performed if (Objects->hasGarbage(Message) | pImpl->LLVMObjects.hasGarbage(Message)) - cerr << "\nThis is probably because you removed an object, but didn't " - << "delete it. Please check your code for memory leaks.\n"; + errs() << "\nThis is probably because you removed an object, but didn't " + << "delete it. Please check your code for memory leaks.\n"; // Clear out results so we don't get duplicate warnings on // next call... |