diff --git a/llvm/include/llvm/Support/FormattedStream.h b/llvm/include/llvm/Support/FormattedStream.h index ecfa4b8ca8c2..9658979352f9 100644 --- a/llvm/include/llvm/Support/FormattedStream.h +++ b/llvm/include/llvm/Support/FormattedStream.h @@ -81,7 +81,7 @@ namespace llvm ~formatted_raw_ostream() { if (DeleteStream) - delete &TheStream; + delete TheStream; } void setStream(raw_ostream &Stream, bool Delete = false) {