Use std::unique_ptr. NFC.
[oota-llvm.git] / lib / MC / MCContext.cpp
index 383540a7a8fa3714ccfc45ca34c3cc1d85f5b372..b5ad518d0330e89f6846cee1fe0dcffc6469836d 100644 (file)
@@ -63,9 +63,6 @@ MCContext::~MCContext() {
 
   // NOTE: The symbols are all allocated out of a bump pointer allocator,
   // we don't need to free them here.
-
-  // If the stream for the .secure_log_unique directive was created free it.
-  delete (raw_ostream *)SecureLog;
 }
 
 //===----------------------------------------------------------------------===//