[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / mlir / lib / Support / RawOstreamExtras.cpp
blob80d1595d7f55ce374de3686c6e73659e625ee52a
1 //===- RawOstreamExtras.cpp - Extensions to LLVM's raw_ostream ------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "mlir/Support/RawOstreamExtras.h"
10 #include "llvm/Support/raw_ostream.h"
12 llvm::raw_ostream &mlir::thread_safe_nulls() {
13 static thread_local llvm::raw_null_ostream stream;
14 return stream;